joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422735
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x446952
call fcn.00433879
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.004263d5
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x422780
call fcn.004263d5
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x422791
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42279e
or eax, 0xffffffff
jmp 0x4228fa
mov ecx, esi
call fcn.0042227c
mov dword [ebp - 0x14], eax
call fcn.0041f462
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42281c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42281c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42281c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041e048
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42281c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42281c
mov ecx, ebx
call fcn.00422c77
test eax, eax
je 0x42281c
push 0
mov ecx, ebx
call fcn.00422c92
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00420de3
push dword [ebp - 0x14]
call fcn.0041f3ba
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042253d
xor edi, edi
cmp eax, edi
je 0x422879
test byte [esi + 0x3c], 0x10
je 0x422863
push 4
pop edi
mov ecx, esi
call fcn.00422b5e
test ax, 0x100
je 0x422859
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041ef82
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x422879
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00422cf9
or dword [ebp - 4], 0xffffffff
jmp 0x4228a4
cmp dword [ebp - 0x28], edi
je 0x4228b2
push 1
mov ecx, ebx
call fcn.00422c92
cmp dword [ebp - 0x2c], edi
je 0x4228c2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4228db
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4228db
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.004222b6
cmp dword [esi + 0x58], edi
je 0x4228f7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004338e5
ret
Function at 0x422964
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 0x422984
cmp dword [edi + 0x54], 0
jne 0x422984
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004263d5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0042292b
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 0x4275aa
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x427648
push 0x44da2c
push 4
push eax
call fcn.004320be
push eax
call fcn.00401618
add esp, 0x10
push ebx
push edi
call fcn.00433bc6
mov edi, dword [eax]
call fcn.00433bc6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00433b6c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00433bc6
cmp dword [eax], ebx
je 0x42765f
call fcn.00433bc6
push dword [eax]
call fcn.0041cd59
pop ecx
jmp 0x427666
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4275f9
jmp 0x4276d8
call fcn.00433bc6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x4276d4
cmp dword [ebp - 0x40], esi
jae 0x4276d4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0042f3b0
add esp, 0xc
push 0x44d528
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4276c6
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4276c6
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4276c6
push ebx
push ebx
push esi
jmp 0x4276cc
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4276d6
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0042f39b
add ebp, 0x1f4
leave
ret
Function at 0x42a0af
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42a0b8
xor eax, eax
jmp 0x42a121
cmp dword [esp + 8], 0
jne 0x42a0c4
call fcn.00423fc7
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004333e6
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42a0ff
push dword [esi + 0x10]
call fcn.00432924
test eax, eax
pop ecx
jne 0x42a0ff
mov esi, dword [esi + 0xc]
call fcn.00433bd9
push esi
push dword [eax]
push 1
call fcn.00429f19
push dword [esi + 0x10]
call fcn.00432953
test eax, eax
pop ecx
je 0x42a11e
push dword [esi + 0x10]
call fcn.004347e0
push eax
call fcn.00401618
pop ecx
pop ecx
jmp 0x42a0ed
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42a12a
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42a134
call fcn.00423fc7
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00432ae1
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x42a161
mov esi, dword [esi + 0xc]
call fcn.00433bd9
push esi
push dword [eax]
push 1
call fcn.00429f19
pop esi
ret 8

Function at 0x42b226
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42b24f
call fcn.004263d5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42b272
push eax
push dword [esi + 4]
call fcn.0042b1b1
push esi
push eax
mov ecx, 0x4655ac
call fcn.0042aea0
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42f39b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x461de0]
jne 0x42f3a5
repz ret
jmp fcn.00438ec8
Function at 0x43314a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x433187
cmp dword [ebp + 0x14], edi
je 0x433187
cmp ecx, edi
jne 0x43318e
call fcn.00433bc6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043686b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4331a2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4331c3
cmp ebx, 0xffffffff
je 0x4331b2
push ebx
push edi
push ecx
call fcn.0042f3b0
add esp, 0xc
cmp esi, edi
je 0x43316f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43316f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4331df
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4331e6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4332d7
test word [esi + 0xc], 0x10c
je 0x43323a
mov eax, dword [esi + 4]
test eax, eax
je 0x43323a
jl 0x433338
cmp ebx, eax
mov edi, ebx
jb 0x43320b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4332df
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042f320
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4332cf
cmp ebx, dword [ebp - 0xc]
jb 0x4332a7
cmp dword [ebp - 0xc], 0
je 0x433264
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x433259
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x433260
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43326f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43326f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43330b
push eax
push dword [ebp - 8]
push esi
call fcn.0043462d
pop ecx
push eax
call fcn.0043df7e
add esp, 0xc
test eax, eax
je 0x43334a
cmp eax, 0xffffffff
je 0x433338
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4332cf
push esi
call fcn.0043c10a
cmp eax, 0xffffffff
pop ecx
je 0x43333c
cmp dword [ebp - 4], 0
je 0x43330b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4331ee
mov eax, dword [ebp + 0x14]
jmp 0x433189
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4332f6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042f3b0
add esp, 0xc
call fcn.00433bc6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43317f
cmp dword [ebp + 0xc], 0xffffffff
je 0x433321
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042f3b0
add esp, 0xc
call fcn.00433bc6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43317f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x433189
or dword [esi + 0xc], 0x10
jmp 0x43333c
Function at 0x435167
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 + 0x461f70]
je 0x435182
inc edi
cmp edi, 0x17
jb 0x435173
cmp edi, 0x17
jae 0x435302
push ebp
push 3
call fcn.00440eff
cmp eax, 1
pop ecx
je 0x4352ce
push 3
call fcn.00440eff
test eax, eax
pop ecx
jne 0x4351b6
cmp dword [0x461b30], 1
je 0x4352ce
cmp ebx, 0xfc
je 0x435301
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x465910
push ebp
call fcn.00440e9a
add esp, 0xc
test eax, eax
je 0x4351ec
push esi
push esi
push esi
push esi
push esi
call fcn.0043676f
add esp, 0x14
push 0x104
mov esi, 0x465929
push esi
push 0
mov byte [0x465a2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435230
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00440e9a
add esp, 0xc
test eax, eax
je 0x435230
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043676f
add esp, 0x14
push esi
call fcn.00431010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435275
push esi
call fcn.00431010
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x465c24
push 0x44f8ac
sub ecx, eax
push ecx
push eax
call fcn.00440de7
add esp, 0x14
test eax, eax
je 0x435275
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043676f
add esp, 0x14
jmp 0x435277
xor esi, esi
push 0x44f8a8
push ebx
push ebp
call fcn.00440d76
add esp, 0xc
test eax, eax
je 0x435297
push esi
push esi
push esi
push esi
push esi
call fcn.0043676f
add esp, 0x14
push dword [edi*8 + 0x461f74]
push ebx
push ebp
call fcn.00440d76
add esp, 0xc
test eax, eax
je 0x4352b9
push esi
push esi
push esi
push esi
push esi
call fcn.0043676f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00440bb9
add esp, 0xc
jmp 0x435301
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435301
cmp ebp, 0xffffffff
je 0x435301
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x461f74]
push dword [esi]
call fcn.00431010
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 0x440bb9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00435d2b
xor ebx, ebx
cmp dword [0x466418], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x440c8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x440d6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x440d6f
push eax
call fcn.00435cbd
mov dword [esp], 0x44fcc0
push edi
mov dword [0x466418], eax
call esi
push eax
call fcn.00435cbd
mov dword [esp], 0x44fcac
push edi
mov dword [0x46641c], eax
call esi
push eax
call fcn.00435cbd
mov dword [0x466420], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00431163
test eax, eax
pop ecx
pop ecx
je 0x440c5d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043676f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x440c8f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00435cbd
cmp eax, ebx
pop ecx
mov dword [0x466428], eax
je 0x440c8f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435cbd
pop ecx
mov dword [0x466424], eax
mov eax, dword [0x466424]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x440d14
cmp dword [0x466428], ecx
je 0x440d14
push eax
call fcn.00435d34
push dword [0x466428]
mov esi, eax
call fcn.00435d34
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x440d14
cmp edi, ebx
je 0x440d14
call esi
cmp eax, ebx
je 0x440ce1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x440ce1
test byte [ebp - 0x18], 1
jne 0x440d14
lea eax, [ebp - 0x10]
push eax
call fcn.0043119a
test eax, eax
pop ecx
je 0x440cfc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043676f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x440d0b
or dword [ebp + 0x10], 0x200000
jmp 0x440d4f
or dword [ebp + 0x10], 0x40000
jmp 0x440d4f
mov eax, dword [0x46641c]
cmp eax, dword [ebp - 8]
je 0x440d4f
push eax
call fcn.00435d34
cmp eax, ebx
pop ecx
je 0x440d4f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x440d4f
mov eax, dword [0x466420]
cmp eax, dword [ebp - 8]
je 0x440d4f
push eax
call fcn.00435d34
cmp eax, ebx
pop ecx
je 0x440d4f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466418]
call fcn.00435d34
cmp eax, ebx
pop ecx
je 0x440d6f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x440d71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446294
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00446229
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.0042f3b0
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 0x4462e3
cmp dword [ebp - 0x1c], 5
jb 0x4462fb
jmp 0x4462f7
cmp dword [ebp - 0x10], 1
jne 0x4462fb
cmp dword [ebp - 0x1c], 4
ja 0x4462f7
jne 0x4462fb
cmp dword [ebp - 0x18], 0
jbe 0x4462fb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x450d0c
call fcn.004460fd
test eax, eax
jge 0x44631c
mov byte [0x466760], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042f39b
add ebp, 0x78
leave
ret
Function at 0x40892e
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov esi, dword [esp]
add esp, 4
inc eax
sub edx, 0xfca26829
call fcn.0040896f
push 0x71d0dd9a
pop eax
or eax, eax
xor dword [edi], esi
add edi, 1
inc edx
sub edx, edx
cmp edi, ecx
jne fcn.0040892e
sub eax, 0x8f2ff13f
add eax, 0xfb077c37
ret
Function at 0x4039e4
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x403b5d
Capabilities:
Create directory

Disassembly:
mov eax, 0x4251ac
call fcn.004243f0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403b80
mov al, 1
jmp 0x403bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403b91
xor al, al
jmp 0x403bc5
lea ecx, [ebp - 0x44]
call fcn.00403fa2
lea ecx, [ebp - 0x1c]
call fcn.004025ab
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00403fd4
test al, al
je 0x403bba
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004020ec
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403fd3
or eax, eax
ret

Function at 0x40443b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x425234
call fcn.004243f0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401ecd
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x4044fb
lea eax, [ebx + ebx]
push eax
call fcn.004020c5
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x4044f4
cmp edi, ebx
ja 0x4044f4
lea ecx, [ebp - 0x2c]
call fcn.004025ab
xor eax, eax
xor ebx, ebx
cmp edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
jbe 0x4044dc
push 2
pop edi
cmp word [esi + edi - 2], 0
jne 0x4044d1
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004026a0
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00401a64
mov eax, edi
inc ebx
inc edi
inc edi
cmp ebx, dword [ebp - 0x10]
jb 0x4044a7
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.004020ec
push esi
call fcn.004020ec
cmp dword [ebp - 0x14], edi
pop ecx
pop ecx
sete al
jmp 0x4044fd
push esi
call fcn.004020ec
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40456e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404594
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404594
xor al, al
jmp 0x4045b4
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004246f0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40c539
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4259d6
call fcn.004243f0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.004025ab
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c588
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40c5e5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x425a21
call fcn.004243f0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040e8ba
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c630
push dword [esi + 0x24]
call fcn.004020ec
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0041a624
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040cad1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40faeb
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
neg cl
sbb ecx, ecx
and cl, 1
add ecx, 0x100
or cx, 0x4010
push ecx
push 0x2b4
push eax
push 0x90
push 0x428730
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret

Function at 0x410b1d
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x426164
call fcn.004243f0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x428f04
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.004025ab
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004025ab
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.004025ab
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004025ab
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.004025ab
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x428ed0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret