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

Disassembly:
jmp 0x406860
push 0xffffffffffffffff
push 0x498011
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x13c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str..FileToEmail.cpp
mov dword [esp + 0x140], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.GetWindowsDir
mov byte [esp + 0x144], 1
call fcn.004012d5
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x140], 2
call fcn.00451640
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406944
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004013f2
xor al, al
jmp 0x406987
lea eax, [esp + 0x24]
lea edx, [eax + 1]
jmp 0x406950
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406950
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00401032
push 0x5c
mov ecx, esi
call fcn.00401366
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004013f2
mov al, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045162d
add esp, 0x130
ret 4

Function at 0x406a10
Capabilities:
Get common file path

Disassembly:
jmp 0x406a10
push 0xffffffffffffffff
push 0x498081
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x13c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str..FileToEmail.cpp
mov dword [esp + 0x140], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.GetSystemsDir
mov byte [esp + 0x144], 1
call fcn.004012d5
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x140], 2
call fcn.00451640
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x406af4
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004013f2
xor al, al
jmp 0x406b37
lea eax, [esp + 0x24]
lea edx, [eax + 1]
jmp 0x406b00
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406b00
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00401032
push 0x5c
mov ecx, esi
call fcn.00401366
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004013f2
mov al, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045162d
add esp, 0x130
ret 4
Function at 0x409670
Capabilities:
Get common file path

Disassembly:
jmp 0x409670
push 0xffffffffffffffff
push 0x498591
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, dword [esp + 0x140]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..FileToEmail.cpp
mov dword [esp + 0x144], 0
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.GetDesktopDir
mov byte [esp + 0x148], 1
call fcn.004012d5
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0xffffffff
call fcn.0040130c
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x144], 2
call fcn.00451640
add esp, 0xc
push 1
push 0x10
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x409772
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_get_users_data_directory
call fcn.004012d5
lea ecx, [esp + 0x1c]
call fcn.00401514
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004013f2
xor al, al
jmp 0x4097ce
lea edi, [esp + 0x28]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x409780
mov dx, word [0x4a33c8]
lea eax, [esp + 0x28]
mov word [edi], dx
lea edx, [eax + 1]
jmp 0x4097a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4097a0
sub eax, edx
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00401032
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004013f2
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0045162d
add esp, 0x130
ret 4
Function at 0x41549c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4c6dd4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4154dc
push 0x4a6138
push 4
push eax
call fcn.00454b77
push eax
call fcn.0040132f
add esp, 0x10
jmp 0x4154ee
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41555c
push edi
call fcn.00454611
mov edi, dword [eax]
call fcn.00454611
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00452089
add esp, 0x18
mov ebx, eax
call fcn.00454611
cmp dword [eax], 0
je 0x41553c
call fcn.00454611
push dword [eax]
call fcn.00412d70
pop ecx
jmp 0x415543
call fcn.00454611
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41555c
cmp ebx, esi
jae 0x41555c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41555e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045162d
leave
ret
Function at 0x4168fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x499712
call fcn.004542ae
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00423991
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x416946
call fcn.00423991
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x416957
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x416964
or eax, 0xffffffff
jmp 0x416ac0
mov ecx, esi
call fcn.00416429
mov dword [ebp - 0x14], eax
call fcn.0041d8cc
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4169e2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4169e2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4169e2
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004013f7
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4169e2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4169e2
mov ecx, ebx
call fcn.0042116c
test eax, eax
je 0x4169e2
push 0
mov ecx, ebx
call fcn.00421187
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041fa9c
push dword [ebp - 0x14]
call fcn.0041d824
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00416703
xor edi, edi
cmp eax, edi
je 0x416a3f
test byte [esi + 0x3c], 0x10
je 0x416a29
push 4
pop edi
mov ecx, esi
call fcn.00421006
test ax, 0x100
je 0x416a1f
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041d3ac
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x416a3f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00421472
or dword [ebp - 4], 0xffffffff
jmp 0x416a6a
cmp dword [ebp - 0x28], edi
je 0x416a78
push 1
mov ecx, ebx
call fcn.00421187
cmp dword [ebp - 0x2c], edi
je 0x416a88
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x416aa1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x416aa1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00416463
cmp dword [esi + 0x58], edi
je 0x416abd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00454353
ret
Function at 0x416b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x416ba0
cmp dword [edi + 0x54], 0
jne 0x416ba0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00423991
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00416b47
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x41ee71
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41eeaa
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004140fd
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004140d8
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x420db1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x420df4
call fcn.00423991
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420df4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x420e0f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00420968
test ebx, ebx
mov esi, eax
je 0x420e0d
test edi, edi
je 0x420e0d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42186e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x49a2cd
call fcn.0045427b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x421893
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4218df
call fcn.004141fe
push eax
lea ecx, [ebp - 0x10]
call fcn.004013fc
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004127c2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013ca
mov eax, esi
call fcn.00454353
ret 8
Function at 0x4221ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x422200
call fcn.00423991
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x422200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x422243
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42222c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42222c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x422240
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45162d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6dd4]
jne 0x451637
repz ret
jmp fcn.0045f74c
Function at 0x462d42
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c78b8]
je 0x462d5d
inc edi
cmp edi, 0x17
jb 0x462d4e
cmp edi, 0x17
jae 0x462edd
push ebp
push 3
call fcn.00470e62
cmp eax, 1
pop ecx
je 0x462ea9
push 3
call fcn.00470e62
test eax, eax
pop ecx
jne 0x462d91
cmp dword [0x4c6ec0], 1
je 0x462ea9
cmp ebx, 0xfc
je 0x462edc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4cb398
push ebp
call fcn.00454b77
add esp, 0xc
test eax, eax
je 0x462dc7
push esi
push esi
push esi
push esi
push esi
call fcn.0045b4bb
add esp, 0x14
push 0x104
mov esi, 0x4cb3b1
push esi
push 0
mov byte [0x4cb4b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x462e0b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00454b77
add esp, 0xc
test eax, eax
je 0x462e0b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045b4bb
add esp, 0x14
push esi
call fcn.004541f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x462e50
push esi
call fcn.004541f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4cb6ac
push 0x4ad7fc
sub ecx, eax
push ecx
push eax
call fcn.0045827e
add esp, 0x14
test eax, eax
je 0x462e50
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045b4bb
add esp, 0x14
jmp 0x462e52
xor esi, esi
push 0x4ad7f8
push ebx
push ebp
call fcn.00454cc4
add esp, 0xc
test eax, eax
je 0x462e72
push esi
push esi
push esi
push esi
push esi
call fcn.0045b4bb
add esp, 0x14
push dword [edi*8 + 0x4c78bc]
push ebx
push ebp
call fcn.00454cc4
add esp, 0xc
test eax, eax
je 0x462e94
push esi
push esi
push esi
push esi
push esi
call fcn.0045b4bb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00470ca5
add esp, 0xc
jmp 0x462edc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x462edc
cmp ebp, 0xffffffff
je 0x462edc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c78bc]
push dword [esi]
call fcn.004541f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x470ca5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045af26
xor ebx, ebx
cmp dword [0x4cb834], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x470d7b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x470e5b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x470e5b
push eax
call fcn.0045aeb8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4cb834], eax
call esi
push eax
call fcn.0045aeb8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4cb838], eax
call esi
push eax
call fcn.0045aeb8
mov dword [0x4cb83c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004547e2
test eax, eax
pop ecx
pop ecx
je 0x470d49
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045b4bb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x470d7b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045aeb8
cmp eax, ebx
pop ecx
mov dword [0x4cb844], eax
je 0x470d7b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045aeb8
pop ecx
mov dword [0x4cb840], eax
mov eax, dword [0x4cb840]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x470e00
cmp dword [0x4cb844], ecx
je 0x470e00
push eax
call fcn.0045af2f
push dword [0x4cb844]
mov esi, eax
call fcn.0045af2f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x470e00
cmp edi, ebx
je 0x470e00
call esi
cmp eax, ebx
je 0x470dcd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x470dcd
test byte [ebp - 0x18], 1
jne 0x470e00
lea eax, [ebp - 0x10]
push eax
call fcn.00454891
test eax, eax
pop ecx
je 0x470de8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045b4bb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x470df7
or dword [ebp + 0x10], 0x200000
jmp 0x470e3b
or dword [ebp + 0x10], 0x40000
jmp 0x470e3b
mov eax, dword [0x4cb838]
cmp eax, dword [ebp - 8]
je 0x470e3b
push eax
call fcn.0045af2f
cmp eax, ebx
pop ecx
je 0x470e3b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x470e3b
mov eax, dword [0x4cb83c]
cmp eax, dword [ebp - 8]
je 0x470e3b
push eax
call fcn.0045af2f
cmp eax, ebx
pop ecx
je 0x470e3b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cb834]
call fcn.0045af2f
cmp eax, ebx
pop ecx
je 0x470e5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x470e5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47b8a7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c6dd4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047b706
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00451640
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47b8f6
cmp dword [ebp - 0x1c], 5
jb 0x47b90e
jmp 0x47b90a
cmp dword [ebp - 0x10], 1
jne 0x47b90e
cmp dword [ebp - 0x1c], 4
ja 0x47b90a
jne 0x47b90e
cmp dword [ebp - 0x18], 0
jbe 0x47b90e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b3004
call fcn.0047b4c3
test eax, eax
jge 0x47b92f
mov byte [0x4c8f18], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045162d
add ebp, 0x78
leave
ret
Function at 0x4d87e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4d8805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x4d8878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4d883a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x4d886d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x4d886b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x4d8831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4d87fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x402600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402619
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402654
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402650
lea ebx, [ebx]
cmp esi, eax
jae 0x402654
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402640
cmp esi, eax
jb 0x40265a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4058b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov ebx, ecx
je 0x40593b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40593b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058e3
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
pop edi
pop ebx
mov eax, ecx
ret 4
push esi
push edi
call fcn.004391cf
mov esi, eax
push 0x5c
push esi
call sub.ntdll.dll_strrchr
add esp, 0xc
test eax, eax
je 0x405930
push esi
mov ecx, ebx
mov byte [eax], 0
call fcn.004058b0
test eax, eax
push esi
jne 0x40591b
call fcn.004379bb
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
call fcn.004379bb
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405913
pop esi
pop edi
mov eax, 1
pop ebx
ret 4
pop edi
xor eax, eax
pop ebx
ret 4

Function at 0x405990
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x4059bb
pop edi
add esp, 0x28
ret 8
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, eax
sub esi, 1
neg esi
sbb esi, esi
inc esi
je 0x405a24
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, eax
test esi, esi
je 0x405a24
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov esi, eax
test esi, esi
je 0x405a24
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
add esp, 0x28
ret 8