joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 2
push 0x1400
push 0x41e1d8
call fcn.0042012e
add esp, 0xc
push 0x41f978
push 0x40e8c6
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x420ce4
push dword [ebp - 8]
push 1
push 0x1400
push 0x41e1d8
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 0x41f97c
push 0x40e7c7
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420d21
push dword [ebp - 4]
push 1
push 0x1400
push 0x41e1d8
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [0x41d688]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
jne 0x420d4b
push 0x40e8c6
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
jne 0x420d4b
push 0x40e7c7
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor eax, eax
leave
ret

Function at 0x420eca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
leave
ret

Function at 0x420fab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push 0
push 0
push 0
push 0
push 0x41f990
call dword [0x40dec8]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x421089
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x82c]
call dword [0x401200]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x421089
push 0x41f994
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
je 0x421089
lea eax, [ebp - 0x824]
push eax
push 0x800
lea eax, [ebp - 0x800]
push eax
push dword [ebp - 0x830]
call dword [0x401208]
test eax, eax
jne 0x421048
jmp 0x421077
push dword [ebp - 0x834]
push 1
push dword [ebp - 0x824]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 0x824], 0
ja 0x421023
push dword [ebp - 0x834]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
jmp 0x42108b
xor eax, eax
leave
ret
Function at 0x421167
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x51fc
call fcn.00422580
push 0x41f9a0
call fcn.004200ec
pop ecx
mov dword [ebp - 0x51e8], eax
push 0x41f9d0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
add eax, 7
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x50e0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x41f9d4
mov eax, dword [ebp + 8]
add eax, 7
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x51e4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x190]
push eax
push 1
call sub.WS2_32.dll_WSAStartup
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x50e4], eax
cmp dword [ebp - 0x50e4], 0
je 0x4212e5
mov word [ebp - 0x51f8], 2
lea eax, [ebp - 0x50e0]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x51fc], eax
cmp dword [ebp - 0x51fc], 0
je 0x4212e5
mov eax, dword [ebp - 0x51fc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x51f4], eax
push 0x50
call sub.WS2_32.dll_htons
mov word [ebp - 0x51f6], ax
push 0x10
lea eax, [ebp - 0x51f8]
push eax
push dword [ebp - 0x50e4]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x4212e5
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x50e0]
push eax
lea eax, [ebp - 0x51e4]
push eax
push 0x41f9d8
lea eax, [ebp - 0x4fe0]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
lea eax, [ebp - 0x4fe0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x4fe0]
push eax
push dword [ebp - 0x50e4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4212e5
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 0x50e4]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
push 1
pop eax
jmp 0x4212f7
push dword [ebp - 0x50e4]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x23730478
nop
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x2083338e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea eax, [esp + 4]
mov dword [esp + 0x1c], 0
push eax
call fcn.004175be
lea ecx, [esp + 4]
lea edx, [esp + 4]
push ecx
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x3d4]
push edx
mov byte [esp + 0x30], 1
call fcn.0040f460
lea eax, [esp + 4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004370e2
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x405940
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43f9cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x630b84]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov cl, byte [0x632790]
xor eax, eax
mov byte [esp + 0x2c], cl
mov ecx, 0x40
lea edi, [esp + 0x2d]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
mov dword [esp + 0x140], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x630b84]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.0043726b
lea edx, [esp + 0x10]
push str.3temp
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00437377
mov byte [esp + 0x138], 2
call fcn.00442016
mov edi, eax
call fcn.00442010
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.0043780e
mov ecx, dword [esp + 0xc]
push 0
push 0x1002
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x144], 3
call fcn.004379c0
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.00437b17
lea ecx, [esp + 0x18]
call fcn.00437bdb
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00436e57
mov ecx, esi
call fcn.00403da0
mov ecx, esi
mov byte [esi + 0x3cc], 1
call fcn.00403780
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
call fcn.00437903
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 1
call fcn.004370e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 0
call fcn.004370e2
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004370e2
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x130
ret

Function at 0x405c80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x4073c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
push 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 0
mov dword [edi + 0x84], eax
call fcn.00437863
lea edx, [edi + 4]
push 4
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 1
call fcn.00437add
lea eax, [esp + 0xc]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.00437add
lea ecx, [esp + 0x7c]
push 4
push ecx
lea ecx, [esp + 0x18]
call fcn.00437add
push 0
push 0x1000
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.0043998d
mov ebp, dword [esp + 0x74]
xor esi, esi
mov byte [esp + 0x6c], 2
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4074b4
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 1]
and ecx, 0xffff
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
mov ecx, edi
push eax
push 0xea60
call fcn.00406fd0
lea ecx, [esp + 0x20]
call fcn.00439c9e
mov edx, dword [ebp + 4]
push 0
lea ecx, [esp + 0x14]
mov eax, dword [edx + esi*4]
push eax
call fcn.00437b62
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, edi
call fcn.00407500
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
jl 0x40745c
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.00439a69
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 0
call fcn.00437903
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004370e2
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc

Function at 0x409c50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44009b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.0040c6a0
xor edi, edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], edi
call fcn.0040c6a0
mov eax, 0x443e0c
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov eax, dword [0x630b84]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x443e08
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40ca10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44045f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, ecx
push edi
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.0040c8b0
mov esi, dword [esi + 0xc]
mov edi, dword [esp + 0x38]
mov ecx, ebp
add esi, edi
mov edi, dword [esp + 0x1c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x30], 1
mov byte [ecx + ebp], 0
mov ecx, esi
call fcn.0040c7e0
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0040c6f0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x40e650
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x440688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
push 0x8f
mov dword [esp + 0xc], esi
call fcn.004067f0
mov ecx, esi
mov dword [esp + 0x10], 0
mov dword [esi], method.CDialog.virtual_0
call fcn.0040e7c0
lea ecx, [esp + 0x18]
push ecx
push 4
push esi
push 0x40e760
push 0
push 0
call fcn.00422d50
add esp, 0x18
mov dword [esi + 0x68], eax
test eax, eax
je 0x40e6b8
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40f090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xd40
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x40f0b0
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov esi, dword [esp + 0xd50]
test esi, esi
jne 0x40f0be
lea esi, [edi + 8]
push esi
call fcn.0040f290
add esp, 4
test al, al
jne 0x40f0d7
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
lea eax, [esp + 0x218]
mov ecx, edi
push eax
call fcn.0040ef80
mov al, byte [esp + 0x448]
test al, al
je 0x40f124
lea ecx, [esp + 0x218]
push 0
add edi, 8
push ecx
push edi
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0042221f
lea eax, [esp + 0x24]
push eax
call fcn.0040f290
add esp, 0x18
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
mov al, byte [esp + 0xd54]
test al, al
je 0x40f16e
lea ecx, [esp + 0x44c]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
lea eax, [esp + 0x224]
push 0
push eax
call fcn.004222b0
lea ecx, [esp + 0x460]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
lea eax, [esp + 0x238]
push 0
push eax
call fcn.0042221f
add esp, 0x28
lea ecx, [esp + 0x218]
push 0
push ecx
push esi
lea edx, [esp + 0x120]
push 0
push edx
call fcn.0042221f
lea eax, [esp + 0x128]
push eax
call fcn.0040f310
add esp, 0x18
test al, al
jne 0x40f1a8
pop edi
pop esi
pop ebp
add esp, 0xd40
ret 8
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x128]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40f1dd
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
mov edx, dword [edi + 4]
push edx
call fcn.004103e0
test eax, eax
je 0x40f1f8
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xd40
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x550]
push 0x800
push eax
push ecx
call fcn.0040fd50
mov esi, eax
test esi, esi
jle 0x40f243
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x558]
push esi
push eax
push ebp
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x40f240
cmp dword [esp + 0x10], esi
je 0x40f1ff
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 4]
push ecx
call fcn.0040ff50
test esi, esi
pop ebx
jne 0x40f270
mov edx, dword [esp + 0x430]
lea eax, [esp + 0x114]
push edx
push eax
call fcn.0040f350
add esp, 8
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
add esp, 0xd40
ret 8
Function at 0x40f290
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40f2f0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40f2f0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f2c0
and eax, 0x10
xor ecx, ecx
cmp al, 0x10
pop edi
sete cl
mov al, cl
pop esi
ret
push edi
call fcn.00422f07
mov esi, eax
push 0x5c
push esi
call fcn.00422ee0
add esp, 0xc
test eax, eax
je 0x40f30a
push esi
mov byte [eax], 0
call fcn.0040f290
add esp, 4
test al, al
push esi
jne 0x40f2f5
call fcn.00422e89
add esp, 4
pop edi
xor al, al
pop esi
ret
call fcn.00422e89
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40f2f0
pop edi
mov al, 1
pop esi
ret

Function at 0x40f350
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x40f37b
xor al, al
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40f3f0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40f3f0
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x40f3f0
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
add esp, 0x28
ret
Function at 0x410550
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41055f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x62f2cc]
test eax, eax
je 0x41056d
call fcn.00410400
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x410661
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x6337c0]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6337c0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x6337c0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6337c0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x6337c0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6337c0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x6337c0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6337c0]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x410587
pop edi
pop ebx
test edx, edx
je 0x410681
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6337c0]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x410665
not eax
pop esi
ret 0xc
Function at 0x429ddf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x631f58
cmp edx, dword [eax]
je 0x429e01
add eax, 8
inc ecx
cmp eax, 0x631fe8
jl 0x429df2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x631f58]
jne 0x429f2f
mov eax, dword [0x635c2c]
cmp eax, 1
je 0x429f09
test eax, eax
jne 0x429e32
cmp dword [0x6314a4], 1
je 0x429f09
cmp edx, 0xfc
je 0x429f2f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x429e69
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429530
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00425d80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x429eac
lea eax, [ebp - 0x1a4]
push eax
call fcn.00425d80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x448b18
push edi
call fcn.0042b250
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429530
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429540
lea eax, [ebp - 0xa0]
push 0x448af8
push eax
call fcn.00429540
push dword [esi + 0x631f5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429540
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042bfbb
add esp, 0x2c
pop edi
jmp 0x429f2f
lea eax, [ebp + 8]
lea esi, [esi + 0x631f5c]
push 0
push eax
push dword [esi]
call fcn.00425d80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4303f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004221f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4304bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4304bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43046e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x430479
or bh, 8
and edi, 0x8000000
je 0x430494
mov eax, dword [0x6373dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4304bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4308bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4308df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4308fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20