joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47766e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x477653
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408d54
mov dl, 1
mov eax, dword [0x45df90]
call fcn.0045dfe8
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x412be8]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.0045e064
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x477650
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, 0x477684
call fcn.0045e3b0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404528
xor eax, eax
push ebp
push 0x477649
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00417328
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0047768c
mov eax, dword [ebp - 0xc]
call fcn.00408970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477650
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00403490
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00403490
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477675
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404240
ret

Function at 0x4784ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4785b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x47851f
je 0x478532
dec eax
je 0x478545
jmp 0x478556
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x478556
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x478556
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x47856f
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
jmp 0x478597
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x4785c8
call fcn.00404528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4785b7
lea eax, [ebp - 0x104]
call fcn.0040421c
ret
Function at 0x4f8d33
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004f8db2
jae 0x4f8d3f
xor ecx, ecx
call fcn.004f8db2
jae 0x4f8d69
xor eax, eax
call fcn.004f8db2
jae 0x4f8d7a
mov al, 0x10
call fcn.004f8db2
adc al, al
jae 0x4f8d5b
jne 0x4f8da7
stosb byte es:[edi], al
jmp 0x4f8d40
call fcn.004f8dbe
dec ecx
loop 0x4f8d86
mov eax, ebp
call fcn.004f8dbc
jmp 0x4f8da8
lodsb al, byte [esi]
shr eax, 1
je 0x4f8dce
adc ecx, 2
mov ebp, eax
jmp 0x4f8da8
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004f8dbc
cmp eax, 0x7d00
jae 0x4f8da6
cmp eax, 0x500
jae 0x4f8da7
cmp eax, 0x7f
ja 0x4f8da8
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f8d40
pop ebp
ret 8
Function at 0x402b9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x402ba6
repz ret
jmp fcn.00403249

Function at 0x406d86
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.00404831
and dword [ebp - 4], 0
cmp dword [0x45938c], 0
mov ebx, eax
jne 0x406e37
push 0x40a998
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ee8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a98c
push edi
call esi
test eax, eax
je 0x406ee8
push eax
call fcn.004047bf
mov dword [esp], 0x40a97c
push edi
mov dword [0x45938c], eax
call esi
push eax
call fcn.004047bf
mov dword [esp], 0x40a968
push edi
mov dword [0x459390], eax
call esi
push eax
call fcn.004047bf
mov dword [esp], 0x40a94c
push edi
mov dword [0x459394], eax
call esi
push eax
call fcn.004047bf
pop ecx
mov dword [0x45939c], eax
test eax, eax
je 0x406e37
push 0x40a934
push edi
call esi
push eax
call fcn.004047bf
pop ecx
mov dword [0x459398], eax
mov eax, dword [0x459398]
cmp eax, ebx
je 0x406e8f
cmp dword [0x45939c], ebx
je 0x406e8f
push eax
call fcn.0040483a
push dword [0x45939c]
mov esi, eax
call fcn.0040483a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406e8f
test edi, edi
je 0x406e8f
call esi
test eax, eax
je 0x406e86
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406e86
test byte [ebp - 0xc], 1
jne 0x406e8f
or dword [ebp + 0x10], 0x200000
jmp 0x406ec8
mov eax, dword [0x459390]
cmp eax, ebx
je 0x406ec8
push eax
call fcn.0040483a
pop ecx
test eax, eax
je 0x406ec8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406ec8
mov eax, dword [0x459394]
cmp eax, ebx
je 0x406ec8
push eax
call fcn.0040483a
pop ecx
test eax, eax
je 0x406ec8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45938c]
call fcn.0040483a
pop ecx
test eax, eax
je 0x406ee8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406eea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408fd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x409005
call fcn.004033a4
mov dword [eax], esi
call fcn.00403391
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00405982
add esp, 0x14
push 0x16
pop eax
jmp 0x40905a
test dword [ebp + 0xc], 0xfffffff9
jne 0x408fe1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409032
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004033b7
pop ecx
call fcn.00403391
mov eax, dword [eax]
jmp 0x40905a
test al, 0x10
jne 0x409058
test al, 1
je 0x409058
test byte [ebp + 0xc], 2
je 0x409058
call fcn.004033a4
mov dword [eax], 5
call fcn.00403391
mov dword [eax], 0xd
jmp 0x409029
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4eccb8
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x407114
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x407166
test eax, edx
je 0x407169
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407129
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40714f
add ecx, 4
js 0x40713f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40714c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x407175
test edx, edx
jne 0x40711c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409fd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a009
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043d8
jmp 0x40a012
mov eax, ebx
mov edx, esi
call fcn.0040433c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a01c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a03e
movzx eax, byte [esp]
jmp 0x40a040
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a6d0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a548
mov eax, dword [0x416c0c]
cmp byte [eax], 0
je 0x40a74c
mov eax, dword [0x416b1c]
call fcn.004030d4
call fcn.00402edc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004078cc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a794
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a782
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416af8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4197f0]
call fcn.004052f4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x41340c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404558
add esp, 0x104
pop ebx
ret
Function at 0x414c3c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
mov eax, dword [ebp - 8]
call fcn.00404744
xor eax, eax
push ebp
push 0x414cf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.00402db4
mov esi, eax
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.0040740c
push esi
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404754
push eax
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
call sub.kernel32.dll_GetTempFileNameA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
mov edx, esi
call fcn.004044e0
mov eax, esi
call fcn.00402dd0
mov edx, dword [ebx]
mov eax, 0x414d0c
call fcn.00404844
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404988
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414cfe
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040430c
ret

Function at 0x414d48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
xor eax, eax
push ebp
push 0x414df2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403138
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x414ddc
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414df9
lea eax, [ebp - 4]
call fcn.004042e8
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0x2003
mov dword [ebp - 0x2c], 0x401ebc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [0x404094]
pop dword [ebp - 0x20]
push 0x7f05
push dword [0x404094]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
push 0x7f00
push dword [0x404094]
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], str.myWnd
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x404094]
push 0
push 0
push 0x13e
push 0x166
push 0xc8
push 0x190
push 0xa0000
push 0x404006
push str.myWnd
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
call sub.user32.dll_ShowWindow
push dword [ebp - 4]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4010eb
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4010c4
mov eax, dword [ebp - 0x48]
leave
ret
Function at 0x499640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x62000]
push edi
jmp 0x49965a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x499661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x499650
mov eax, 1
add ebx, ebx
jne 0x499673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x499684
jne 0x4996a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4996a3
dec eax
add ebx, ebx
jne 0x499690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x499668
add ebx, ebx
jne 0x49969f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4996f5
xor ecx, ecx
sub eax, 3
jb 0x4996bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49972a
sar eax, 1
mov ebp, eax
jmp 0x4996c6
add ebx, ebx
jne 0x4996c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x499694
inc ecx
add ebx, ebx
jne 0x4996d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x499694
add ebx, ebx
jne 0x4996e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4996d6
jne 0x4996f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4996d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x499714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x499706
jmp 0x499656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x499714
add edi, ecx
jmp 0x499656
pop esi
mov edi, esi
mov ecx, 0x30e6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x499732
cmp byte [edi], 0x19
jne 0x499732
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x499737
lea edi, [esi + 0x96000]
mov eax, dword [edi]
or eax, eax
je 0x4997af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9ffa0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa00b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x499764
mov ecx, edi
jns 0x499793
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa00bc]
or eax, eax
je 0x4997a9
mov dword [ebx], eax
add ebx, 4
jmp 0x499781
call dword [esi + 0xa00cc]
mov ebp, dword [esi + 0xa00c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4997e3
sub esp, 0xffffff80
jmp 0x45372d
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40300d
Capabilities:
Terminate process

Disassembly:
mov dword [0x402020], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
call dword [sym.imp.kernel32.dll_GetVersion]
mov edx, eax
xor edi, edi
xor esi, esi
push dword [0x4035d8]
call dword [sym.imp.winmm.dll_waveInClose]
add eax, 6
test eax, 0xb
jne 0x403046
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret