joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x474a9f
push ebx
push edi
xor edi, edi
push str.2411780a82e856b84c8adf1dcc074c07
mov dword [ebp + 8], edi
call fcn.004917d0
mov ebx, dword [ebp + 0xc]
mov edx, edi
pop ecx
test ebx, ebx
je 0x474a5c
mov cl, byte [edi + str.2411780a82e856b84c8adf1dcc074c07]
xor byte [edx + esi], cl
inc edi
xor ecx, ecx
cmp edi, eax
cmovge edi, ecx
inc edx
cmp edx, ebx
jb 0x474a46
cmp ebx, 1
jle 0x474a93
cmp byte [esi], 0x37
jne 0x474a93
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x474a71
cmp al, 0x5a
jne 0x474a93
lea eax, [ebp + 8]
push eax
push ebx
push esi
call fcn.0044d730
test eax, eax
je 0x474a93
mov edx, dword [ebp + 8]
test edx, edx
je 0x474a93
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x474a9d
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x476c3d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x476c51
xor eax, eax
jmp 0x476d8f
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x476c7a
dec edx
sub edx, 1
jne 0x476c7c
add eax, 2
jmp 0x476c7c
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x476c8f
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x476d8e
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x476d25
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x5f17a8]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x5f17a8]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x5f17a8]
mov byte [edi + 2], al
mov al, byte [esi + 0x5f17a8]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x476cba
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x476d28
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x476d81
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x476d3d
movzx ecx, byte [eax + 1]
jmp 0x476d3f
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x5f17a8]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x5f17a8]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x476d76
and ecx, 0xf
mov al, byte [ecx*4 + 0x5f17a8]
mov byte [edi + 2], al
jmp 0x476d7a
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476f57
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a4
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
and dword [ebp - 0x6a4], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push 0
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x284]
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5f147c
call fcn.00491757
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00491aa2
push edi
lea eax, [ebp - 0x694]
push 0
push eax
call fcn.004830b0
push edi
xor edi, edi
lea eax, [ebp - 0x48c]
push edi
push eax
call fcn.004830b0
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], edi
push edi
push eax
mov dword [ebp - 0x6a0], edi
mov dword [ebp - 0x69c], edi
call fcn.004830b0
add esp, 0x34
lea eax, [ebp - 0x48c]
push ebx
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x477055
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.00408a60
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.00406390
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ce06
mov esp, ebp
pop ebp
ret 4
Function at 0x47987a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x5e688d
call fcn.0046d286
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00464ae4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.00464bb1
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x4798ba
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47991a
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4798f5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47991a
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.00464af7
call fcn.0046d24f
ret 0xc
Function at 0x479dd4
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5e6928
call fcn.0046d2ba
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x479ecb
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x479e50
lea eax, [ebp - 0x218]
push eax
call fcn.00491757
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402650
and dword [ebp - 4], 0
push 0x5e8aa0
call fcn.00491757
pop ecx
push eax
push 0x5e8aa0
lea ecx, [ebp - 0x230]
call fcn.00405710
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00479a37
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x479ebc
call fcn.0041f8c0
mov eax, edi
jmp 0x479f7d
or dword [ebp - 4], 0xffffffff
call fcn.0041f8c0
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x479f7b
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x479f12
lea eax, [ebp - 0x218]
push eax
call fcn.00491757
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402650
mov esi, 0x5e8aa0
mov dword [ebp - 4], 1
push esi
call fcn.00491757
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00405710
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00479a37
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.0041f8c0
test esi, esi
je 0x479f7b
mov eax, esi
jmp 0x479f7d
xor eax, eax
call fcn.0046d264
ret 4
Function at 0x479f85
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
test edi, edi
jne 0x479fad
xor eax, eax
jmp 0x47a0e3
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479fa6
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004830b0
add esp, 0xc
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47a0d1
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47a0ab
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.004830b0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0x5ea874
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47a09f
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00483466
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x47a0d9
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x20c]
push 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x47a016
push dword [ebp - 0x418]
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ce06
mov esp, ebp
pop ebp
ret 4
Function at 0x47abd1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jne 0x47abf6
xor eax, eax
jmp 0x47ac89
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push esi
push str.SYSTEMCurrentControlSetServices_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47ac87
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, esi
push eax
push esi
jmp 0x47ac65
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0048f8c1
pop ecx
pop ecx
test eax, eax
je 0x47ac77
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x47ac44
jmp 0x47ac7a
xor esi, esi
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046ce06
mov esp, ebp
pop ebp
ret 4
Function at 0x47b087
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x5e57ee
call fcn.0046d2ba
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x47b0f2
lea eax, [ebp - 0x218]
push eax
call fcn.00491757
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00402650
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.00491757
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00405710
xor ebx, ebx
cmp word [esi], bx
jne 0x47b12c
mov eax, ebx
jmp 0x47b133
push esi
call fcn.00491757
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00405710
mov esi, 0x5ea9b0
push esi
call fcn.00491757
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00405710
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x47b241
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.004830b0
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004830b0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004917a3
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00479760
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.00491757
pop ecx
test eax, eax
jne 0x47b22f
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004917a3
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x47b241
xor esi, esi
inc esi
jmp 0x47b243
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0041f8c0
mov eax, esi
call fcn.0046d264
ret 4
Function at 0x47b25b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x67baac]
test al, al
jne 0x47b2f4
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47b2eb
lea eax, [ebp - 0x20c]
push eax
call fcn.0048fc0c
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00483466
pop ecx
pop ecx
test eax, eax
jne 0x47b2e3
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.00483466
pop ecx
pop ecx
test eax, eax
je 0x47b2eb
mov byte [0x67baac], bl
jmp 0x47b2f1
mov bl, byte [0x67baac]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce06
mov esp, ebp
pop ebp
ret
Function at 0x47bdbd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004830b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47be28
lea eax, [ebp - 0x20c]
push 0x5e8aa0
push eax
call fcn.00491772
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0047b302
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ce06
mov esp, ebp
pop ebp
ret 4

Function at 0x47c2f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x47c319
xor al, al
jmp 0x47c3d4
call fcn.004736fd
test al, al
je 0x47c343
dec ebp
dec edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ecx], eax
call fcn.0046ce17
mov edi, eax
mov dword [ebp - 8], edi
pop ecx
test edi, edi
je 0x47c312
call fcn.004737cc
test al, al
je 0x47c38e
iretd
call fcn.004735e9
test al, al
je 0x47c3ae
arpl word cs:[ebx], dx
jg 0x47c406
inc ebx
cdq
mov ebp, 0x86c4e8d3
ret 0xc2a9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x18]
push dword [ecx]
push eax
push edi
call fcn.00481dc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sal byte [eax + edx + 0x62], 0x40
call 0x8059a3c8
push ecx

Function at 0x47e9b6
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x480026
Capabilities:
Read file via mapping

Disassembly:
push 0x28
mov eax, 0x5de5c8
call fcn.0046d2ba
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], eax
je 0x48007c
mov ebx, str.Global_
push ebx
call fcn.00491757
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402650
xor ebx, ebx
cmp word [esi], bx
jne 0x480085
mov eax, ebx
jmp 0x48008c
push esi
call fcn.00491757
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00405710
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x4800a8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00402530
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x48013e
xor eax, eax
push eax
push eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4800e2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x48013e
push 0
push dword [ebp - 0x2c]
lea eax, [esi + 4]
push eax
call fcn.00457046
add esp, 0xc
test al, al
je 0x480130
push dword [esi]
call fcn.0046ce17
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
je 0x480130
push dword [esi]
push 0
push eax
call fcn.004830b0
push dword [esi]
mov ebx, dword [ebp - 0x2c]
lea eax, [esi + 0x28]
push eax
push ebx
call fcn.00481dc0
mov eax, dword [ebp - 0x30]
add esp, 0x18
mov ecx, dword [ebp - 0x34]
mov dword [eax], ebx
mov bl, 1
mov eax, dword [esi]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041f8c0
mov al, bl
call fcn.0046d264
ret
Function at 0x480202
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x4802b9
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x5ed018
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x5ed018
call ebx
push dword [ebp - 0xc]
call ebx
push 0x5ed018
call ebx
push dword [ebp - 8]
call ebx
push 0x5ed018
call ebx
push edi
push dword [ebp - 0x10]
call fcn.00491c30
mov edi, dword [ebp - 8]
jge 0x48027c
pop ecx
pop ecx
test eax, eax
jne 0x480299
push edi
push dword [ebp - 0xc]
jne 0x480282
call fcn.00491c30
pop ecx
pop ecx
test eax, eax
je 0x4802b5
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x4802b9
mov ecx, dword [ebp - 0x10]
jmp 0x480249
mov byte [ebp - 1], 1
call fcn.004732ad
test al, al
je 0x4802db
inc edi
mov eax, dword [0x11a683b2]
ja 0x48028c
and esp, edx
jo 0x4802f6
mov esp, 0x2fa09b6e
cld
push ss
jne 0x48030f
mov dword [0xe87030b3], eax
bound esi, qword [edi + edi*8]
inc dword [eax + eax*8 + 0x7d601774]
movsd dword es:[edi], dword [esi]
call fcn.00473742
test al, al
je 0x4802fb
pushal
jge 0x48028c
cmp byte [edx + 0x6b94b840], bh
sub al, ah
or dword [esi + ebp*2 - 0x33], ecx
mov esi, 0xede63f96
out 0xed, al
adc byte [edi], 1
call fcn.004732ad
test al, al
je 0x48031b
sub byte [edi + 0x42], ah
mov edx, 0x72879b30
push esp
fxam
fsubrp st(7)
stosb byte es:[edi], al
fsubrp st(2)
push esp
fldenv [ebp - 0x6f]
imul edi, dword [esp], 0xff7d80
cmp byte [ebp - 1], 0
jne 0x480342
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.004917d0
pop ecx
test eax, eax
je 0x480342
mov ecx, dword [ebp - 0x18]
push esi
call fcn.004811bd
mov al, 1
jmp 0x480344
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4810b0
Capabilities:
Check os version

Disassembly:
mov esp, ebp
pop ebp
ret 0x10
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x11c], esi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
call fcn.00473925
test al, al
je 0x481102
xchg cx, ax
xchg esi, eax
add ecx, 0xffffffa4
push 0xc9f13a84
dec edi
enter 0xffffffffffffdb3a, 0x5d
cld
mov eax, dword [0x9bac625e]
sbb byte [edi], al
aaa
mov esi, dword [ebp - 0x11c]
call fcn.004736fd
test al, al
je 0x481124
push 0x3c
mov bh, 0x27
xlatb
das
add ecx, dword [esi + 0x38]
add byte [edx], 0x21
inc edx
dec edi
sub byte [ebp - 0x45], ah
mov dl, 0x9e
jae 0x4810aa
invalid
mov edi, 0x114
lea eax, [ebp - 0x118]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.004830b0
add esp, 0xc
mov dword [ebp - 0x118], edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x481161
mov ecx, esi
call fcn.00480839
jmp 0x481176
mov edi, ebx
test ebx, ebx
jne 0x481176
mov ecx, esi
call fcn.004806b8
inc edi
mov ebx, eax
cmp edi, 0xa
jl 0x481163
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ce06
mov esp, ebp
pop ebp
ret

Function at 0x49a2bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049a13c

Function at 0x49c39d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049c05d
Function at 0x4a6e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4a6e6c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4a6e5d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4a6ea0
cmp dword [esi + 8], 0
jne 0x4a6e90
push 0x5ed024
push dword [eax + 8]
call fcn.004902a0
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4a6e90
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00490752
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a6ec2
mov eax, dword [esi + 8]
test eax, eax
je 0x4a6ebc
push eax
call fcn.00490087
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4a72e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x676314]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a7330
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4a732a
shr eax, 8
cmp al, 2
jne 0x4a732a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ce06
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0046ce06
mov esp, ebp
pop ebp
ret