joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011a10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
cmp dword [eax + 4], 0
jne 0x10011a1b
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
pop ecx
ret

Function at 0x10011ae0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1014
call fcn.1001f770
push ebp
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push edi
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x13
mov ebp, 0x1000
push ebx
mov dword [esp + 0x24], ebp
call esi
lea edx, [esp + 0x20]
push 0x1004442c
push edx
call fcn.1002026f
add esp, 8
test eax, eax
je 0x10011be9
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 5
push ebx
mov dword [esp + 0x24], ebp
call esi
lea edx, [esp + 0x20]
push edx
call fcn.10015c3d
add esp, 4
push edi
push 0x80
push 2
push edi
push 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x103c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x10011be9
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1024]
mov ebp, eax
mov eax, dword [edx + 0xa0]
add edi, ecx
mov esi, ecx
test eax, eax
je 0x10011bb8
mov ecx, dword [edx + 0xa4]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push edi
call eax
mov ecx, dword [esp + 0x14]
test ebp, ebp
je 0x10011bf7
mov edx, dword [esp + 0xc]
test ecx, ecx
jbe 0x10011c10
push 0
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [esp + 0x18]
je 0x10011b74
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1014
ret 8
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1014
ret 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1014
ret 8
Function at 0x10011c30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x10011c8a
mov byte [ebp - 4], bl
jmp 0x10011d8e
push esi
call fcn.10016752
add esp, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10011ca2
mov byte [ebp - 4], bl
jmp 0x10011d81
push eax
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x10011cb7
mov byte [ebp - 4], bl
jmp 0x10011d7e
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x10043454
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x10011cdb
mov byte [ebp - 4], bl
mov eax, edi
jmp 0x10011d81
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, eax
movzx esi, ax
mov eax, edx
shr eax, 0x10
shr ecx, 0x10
movzx edx, dx
cmp eax, ebx
jne 0x10011d1d
cmp edx, ebx
jne 0x10011d1d
cmp ecx, ebx
jne 0x10011d04
cmp esi, ebx
je 0x10011d4e
push esi
push ecx
lea eax, [ebp - 0x58]
push str._d._d
push eax
call fcn.10010b90
add esp, 0x10
mov byte [ebp - 4], 3
jmp 0x10011d36
push edx
push eax
push esi
push ecx
lea ecx, [ebp - 0x58]
push str._d._d._d._d
push ecx
call fcn.10010b90
add esp, 0x18
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000f960
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.10012900
push edi
call fcn.100163ce
mov esi, dword [ebp + 8]
add esp, 4
lea edx, [ebp - 0x3c]
push edx
mov ecx, esi
call fcn.100128d0
lea ecx, [ebp - 0x3c]
call fcn.10012900
jmp 0x10011dbd
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10011d8e
push eax
call fcn.100163ce
add esp, 4
mov esi, dword [ebp + 8]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x1002b011
mov ecx, esi
mov byte [esi + 4], bl
call fcn.1000fa50
cmp dword [ebp - 0x24], 0x10
jb 0x10011dbd
mov eax, dword [ebp - 0x38]
push eax
call fcn.100163ce
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100122e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x10027d4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
mov ebp, dword [esp + 0xf8]
push esi
xor ebx, ebx
push edi
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x2c], ebx
push ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push 0x1002b011
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.1000fa50
mov edi, 1
lea esi, [esp + 0x54]
mov dword [esp + 0x2c], edi
call fcn.10013820
mov eax, dword [esp + 0x104]
push ebx
push ebx
push 3
push ebx
push 3
push Ordinal_4
push eax
mov dword [esp + 0x114], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x1001247e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10012473
cmp esi, ebx
je 0x1001246c
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esp + 0x28], ecx
cmp ecx, ebx
je 0x10012468
xor eax, eax
mov byte [esp + 0x30], bl
mov byte [esp + 0x18], bl
mov ebx, esi
push ecx
lea esi, [esp + 0x58]
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
call fcn.100138a0
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
call fcn.10013950
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
lea edi, [esp + 0x30]
jmp 0x10012420
movzx edx, byte [esp + esi + 0x18]
push edx
push str._02X
push edi
call ebx
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x10012420
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012441
sub eax, edx
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.1000fa50
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x1001247e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec
ret 8
Function at 0x10013860
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
push esi
lea esi, [eax + 0x5c]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
push esi
lea eax, [ecx + 0x40]
call fcn.10014110
mov byte [esi], 0x80
pop esi
ret

Function at 0x1001d28a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10048c38]
jne 0x1001d294
repz ret
jmp fcn.1001ff3b

Function at 0x1001d743
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10018ba4
and dword [ebp - 4], 0
cmp dword [0x1004eed8], 0
mov ebx, eax
jne 0x1001d7f4
push 0x10029e84
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001d8a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10029e78
push edi
call esi
test eax, eax
je 0x1001d8a5
push eax
call fcn.10018b32
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1004eed8], eax
call esi
push eax
call fcn.10018b32
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1004eedc], eax
call esi
push eax
call fcn.10018b32
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1004eee0], eax
call esi
push eax
call fcn.10018b32
pop ecx
mov dword [0x1004eee8], eax
test eax, eax
je 0x1001d7f4
push 0x10029e20
push edi
call esi
push eax
call fcn.10018b32
pop ecx
mov dword [0x1004eee4], eax
mov eax, dword [0x1004eee4]
cmp eax, ebx
je 0x1001d84c
cmp dword [0x1004eee8], ebx
je 0x1001d84c
push eax
call fcn.10018bad
push dword [0x1004eee8]
mov esi, eax
call fcn.10018bad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001d84c
test edi, edi
je 0x1001d84c
call esi
test eax, eax
je 0x1001d843
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001d843
test byte [ebp - 0xc], 1
jne 0x1001d84c
or dword [ebp + 0x10], 0x200000
jmp 0x1001d885
mov eax, dword [0x1004eedc]
cmp eax, ebx
je 0x1001d885
push eax
call fcn.10018bad
pop ecx
test eax, eax
je 0x1001d885
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001d885
mov eax, dword [0x1004eee0]
cmp eax, ebx
je 0x1001d885
push eax
call fcn.10018bad
pop ecx
test eax, eax
je 0x1001d885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004eed8]
call fcn.10018bad
pop ecx
test eax, eax
je 0x1001d8a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001d8a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xf08f5c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf08f66
pushal
call 0xf08f6c
pop ebp
sub ebp, 0x10
sub ebp, 0xb08f5c
jmp 0xf08f82
mov eax, 0xb08f5c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d7
mov edx, 0xb4bb7732
xor byte [eax], dl
inc eax
dec ecx
jne 0xf08f99
jmp 0xf08fac
mov ecx, 0xebbb9ff
xor dh, byte [edx]
xor dh, byte [ebx + 0x3232caf3]
xor dh, byte [ecx]
dec dword [edx + 0x32323234]
mov byte [edx], bl
xor dh, byte [edx]
xor al, ch
sal byte [ecx], 1
cli
mov ecx, 0x32323eb3
xor dh, byte [ecx]
mul dword [edx + 0x62]
pop edx
ret 0x1038
Function at 0x4020f7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, 0x40a44c
push edi
push esi
call ebx
cmp eax, 0x104
ja 0x40228d
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ax, word [ebp - 0x220]
cmp ax, 0x61
jb 0x40213d
cmp ax, 0x7a
jbe 0x402149
cmp ax, 0x41
jb 0x402166
cmp ax, 0x5a
ja 0x402166
cmp word [ebp - 0x21e], 0x3a
jne 0x402166
cmp word [ebp - 0x21c], 0x5c
jne 0x402166
mov dword [ebp - 4], 3
jmp 0x402184
cmp ax, 0x5c
jne 0x40228d
cmp word [ebp - 0x21e], ax
jne 0x40228d
mov dword [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4021a8
and al, 0x10
neg al
sbb eax, eax
and al, 0x49
add eax, 0xb7
jmp 0x402290
lea ecx, [ebp - 0x220]
call fcn.004020e0
mov esi, eax
test esi, esi
je 0x402289
cmp esi, 0xb7
je 0x402289
lea eax, [ebp - 0x220]
push eax
call ebx
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.00402295
test eax, eax
jge 0x4021ea
mov eax, esi
jmp 0x402290
cmp eax, dword [ebp - 4]
jb 0x4021e3
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x40220a
cmp edi, 1
je 0x402289
and word [ebp + eax*2 - 0x220], 0
mov edi, eax
lea ecx, [ebp - 0x220]
call fcn.004020e0
mov esi, eax
test esi, esi
je 0x402261
cmp esi, 0xb7
je 0x402244
lea ecx, [ebp - 0x220]
call fcn.00402295
test eax, eax
jl 0x4021e3
je 0x4021e3
cmp eax, dword [ebp - 4]
jb 0x4021e3
invalid
invalid
movsb byte es:[edi], byte [esi]
inc ebp
loopne 0x40223c
invalid
invalid
Function at 0x402637
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004022e0
push eax
push esi
push dword [ebp + 8]
call fcn.00402295
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004022e0
push eax
push esi
push dword [ebp + 8]
call fcn.00402295
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004022e0
push eax
push esi
push dword [ebp + 8]
call fcn.00402295
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004022d0
add dword [edx + 0x68], ecx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004022d0
sub al, 0x29
mov ch, 0xa1
lea eax, [ebp - 0x84]
push eax
call fcn.004022e0
push eax
push esi
invalid
invalid
Function at 0x402a03
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4029a7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4029c5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x402a23
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
invalid
je 0x402a0a
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
invalid
invalid
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x402a13
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x402a1d
add ecx, eax
or byte [ecx], 4
invalid
invalid
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4029ff
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402989
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x404c57
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov edx, 0x40a8e0
mov ecx, 0x40ace0
push 8
mov eax, esi
pop edi
mov ebx, eax
and ebx, 1
neg ebx
and ebx, 0xedb88320
shr eax, 1
xor eax, ebx
dec edi
jne 0x404c6b
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, ecx
jb 0x404c66
pop edi
pop esi
pop ebx
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x40a8e0]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40c8e0
jb 0x404c8c
mov eax, 0x404cc3
mov dword [0x40c8e0], eax
mov dword [0x40a8d4], eax
ret

Function at 0x404e2e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
and dword [esi], 0
test edi, edi
je 0x404e87
mov eax, 0x400000
cmp edi, eax
ja 0x404e51
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404e7f
test ecx, ecx
je 0x404e87
test edi, edi
jbe 0x404e87
jmp 0x404e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404e89
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x404e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
and dword [esi], 0
test edi, edi
je 0x404ee9
mov eax, 0x400000
cmp edi, eax
ja 0x404eb3
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404ee1
test ecx, ecx
je 0x404ee9
test edi, edi
jbe 0x404ee9
jmp 0x404ea8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404eeb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x45], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], ecx
cmp eax, 2
ja 0x402268
mov ecx, 2
jmp 0x402283
cmp eax, 8
ja 0x402274
mov ecx, 8
jmp 0x402283
mov ecx, 0xa
cmp ecx, eax
sbb ecx, ecx
and ecx, 6
add ecx, 0xa
cmp dword [ebp + 0x14], 1
push ebx
push esi
push edi
lea esi, [ebp - 0x44]
jbe 0x4022ff
mov dword [ebp - 0x44], 0x300030
mov dword [ebp - 0x40], 0x300030
mov dword [ebp - 0x3c], 0x300030
mov dword [ebp - 0x38], 0x300030
mov dword [ebp - 0x34], 0x300030
mov dword [ebp - 0x30], 0x300030
mov dword [ebp - 0x2c], 0x300030
mov dword [ebp - 0x28], 0x300030
mov dword [ebp - 0x24], 0x300030
mov dword [ebp - 0x20], 0x300030
mov dword [ebp - 0x1c], 0x300030
mov dword [ebp - 0x18], 0x300030
mov dword [ebp - 0x14], 0x300030
mov dword [ebp - 0x10], 0x300030
mov dword [ebp - 0xc], 0x300030
mov dword [ebp - 8], 0x300030
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov eax, ebx
xor edx, edx
div ecx
inc edi
lea esi, [esi + 2]
mov ebx, eax
mov ax, word [edx*2 + str.0123456789ABCDEF]
mov word [esi - 2], ax
test ebx, ebx
jne 0x402304
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp + 0x14]
cmp dword [ebp - 0x4c], edi
lea ebx, [ebp - 0x44]
cmova edi, dword [ebp - 0x4c]
xor eax, eax
cmp byte [ebp - 0x45], al
lea ebx, [ebx + edi*2]
setne al
lea esi, [eax + edi]
lea eax, [esi*2 + 0xd]
and eax, 0xfffffff8
add eax, 8
push eax
call fcn.0040eddc
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], esi
mov dword [eax + 8], 0x402170
mov dword [eax], 1
add esp, 4
cmp byte [ebp - 0x45], 0
mov dword [ecx], eax
mov dword [ecx + 4], 0
lea ecx, [eax + 0xc]
je 0x402384
mov eax, 0x2d
mov word [ecx], ax
add ecx, 2
test edi, edi
je 0x4023a0
jmp 0x402390
mov ax, word [ebx - 2]
lea ebx, [ebx - 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
dec edi
jne 0x402390
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403510
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4190d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4035ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4035ff
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00401000
push 0
push 0x41b47c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401f10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402190
test eax, eax
lea ecx, [ebp - 0x24]
sete bl
mov byte [ebp - 4], 1
call fcn.004010d0
test bl, bl
jne 0x4035f0
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00401000
call fcn.00403510
add esp, 8
test al, al
je 0x4035f0
push 0
lea ecx, [ebp + 8]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
mov byte [ebp - 4], 0
call fcn.004010d0
jmp 0x403601
xor bl, bl
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004010d0
jmp 0x403601
mov bl, 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
Function at 0x403630
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x414]
push 0x104
push eax
mov bl, 1
call fcn.0040fbe0
push 0x41b480
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040fb74
push 0x41b620
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040fb74
add esp, 0x24
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4037d7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4036c0
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040fbe0
add esp, 0xc
mov ecx, 0x41b624
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40370c
test dx, dx
je 0x403708
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40370c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4036e6
xor eax, eax
jmp 0x403711
sbb eax, eax
or eax, 1
test eax, eax
je 0x4037b9
mov ecx, 0x41b628
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40374a
test dx, dx
je 0x403746
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40374a
add eax, 4
add ecx, 4
test dx, dx
jne 0x403724
xor eax, eax
jmp 0x40374f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4037b9
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fbe0
push 0x41b480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fb74
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fb74
add esp, 0x24
test byte [ebp - 0x86c], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x4037b7
call fcn.00403630
add esp, 4
mov bl, al
jmp 0x4037b9
call edi
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4036c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
neg eax
sbb al, al
and al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ee55
mov esp, ebp
pop ebp
ret