joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a410
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x53b543
call fcn.00521e19
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42a435
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42a487
call fcn.004219a6
push eax
lea ecx, [ebp - 0x10]
call fcn.00402230
mov ecx, dword [esi + 0x6c]
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.0051d134
push eax
call fcn.00406120
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402260
mov eax, esi
call fcn.00521ef1
ret 8

Function at 0x4308e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x430928
call fcn.004311c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x430928
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x430944
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004303e6
mov esi, eax
test edi, edi
je 0x430942
test ebx, ebx
je 0x430942
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43158d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0043124c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4315d7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00422d5d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040fd20
jmp 0x4315e2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043997d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4315e8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00429cfd
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x431625
call fcn.0043124c
mov dword [esi + 0xc], 1
jmp 0x43162a
call fcn.0043124c
cmp dword [esi], 0
je 0x431673
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x43164b
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00422d5d
jmp 0x43165d
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004020e0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040fd20
jmp 0x431697
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x431697
push dword [esi]
push dword [ebp + 8]
call fcn.0043997d
pop esi
pop ebp
ret 0xc

Function at 0x434be3
Capabilities:
Create http request

Disassembly:
mov edi, edi
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]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x434c0e
call fcn.004311c9
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_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x434c31
push eax
push dword [esi + 4]
call fcn.00434b69
push esi
push eax
mov ecx, 0x59b9b4
call fcn.004347ec
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4354bc
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5388bd
call fcn.00521e19
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043547c
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.004219a6
push eax
lea ecx, [esi + 0x18]
call fcn.00402230
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00401e60
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x435534
push eax
push dword [esi + 8]
call fcn.00434b69
push dword [esi + 0xc]
mov ecx, 0x59b9b4
push eax
call fcn.004347ec
mov eax, esi
call fcn.00521ef1
ret 0x1c
Function at 0x4aa67b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4aa695
call fcn.004311c9
mov esi, dword [eax + 0xc]
push dword [0x59db4c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4aa6b3
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4aa6ab
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4aa6e0
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4aa6ad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004aa5a9
mov esi, eax
jmp 0x4aa6d2

Function at 0x4f8db2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0042ec99
call fcn.00405040
cmp eax, esi
pop esi
jne 0x4f8dce
mov ecx, 0x59bcb0
jmp fcn.0043cf50
ret

Function at 0x4fc6b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fc6cd
mov edi, dword [esi + 0xc]
jmp 0x4fc70d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4fc6e6
call fcn.00432242
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fc6fb
call fcn.00432242
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fc70d
call fcn.00432242
call fcn.004311c9
cmp dword [eax + 0x3c], 0
je 0x4fc722
push edi
mov ecx, ebx
call fcn.004fb57b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fc5cf
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fc740
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fc74c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51ac68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5960c0]
jne 0x51ac72
repz ret
jmp fcn.00525844
Function at 0x5338f1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00527848
and dword [ebp - 0x14], 0
cmp dword [0x5a00f8], 0
mov dword [ebp - 0x18], eax
jne 0x5339a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x533a4c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x533a4c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x570c5c
push ebx
mov dword [0x5a00f8], eax
call edi
push eax
call esi
push 0x570c48
push ebx
mov dword [0x5a00fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5a0100], eax
call edi
push eax
call esi
mov dword [0x5a0108], eax
test eax, eax
je 0x5339a4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5a0104], eax
mov eax, dword [0x5a0104]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5339fd
cmp dword [0x5a0108], ecx
je 0x5339fd
push eax
call esi
push dword [0x5a0108]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5339fd
test ebx, ebx
je 0x5339fd
call edi
test eax, eax
je 0x5339f4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5339f4
test byte [ebp - 8], 1
jne 0x5339fd
or dword [ebp + 0x10], 0x200000
jmp 0x533a30
mov eax, dword [0x5a00fc]
cmp eax, dword [ebp - 0x18]
je 0x533a30
push eax
call esi
test eax, eax
je 0x533a30
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x533a30
mov eax, dword [0x5a0100]
cmp eax, dword [ebp - 0x18]
je 0x533a30
push eax
call esi
test eax, eax
je 0x533a30
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5a00f8]
call esi
test eax, eax
je 0x533a4c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x533a4e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051ac68
leave
ret
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10007c2e
pop dword [ebp - 0x34]
mov eax, 0x3f01ab79
sub eax, 0x2f012f4b
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x694cdd6a
sub dword [ebp - 0x44], 0x1afa981f
mov dword [ebp - 0x40], 0x373eaa15
add dword [ebp - 0x40], 0xfaf4a230
mov dword [ebp - 0x3c], 0x24d9e304
sub dword [ebp - 0x3c], 0xd88d9ed6
mov dword [ebp - 0x38], 0xda14b805
sub dword [ebp - 0x38], 0xda14b805
lea eax, [ebp - 0x44]
push eax
mov eax, 0xbd2e6c40
sub eax, 0xad2debec
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x250fde63
sub dword [ebp - 0x44], 0xb09d750d
mov dword [ebp - 0x40], 0xcd140df6
add dword [ebp - 0x40], 0x7458537f
mov dword [ebp - 0x3c], 0x81d01934
add dword [ebp - 0x3c], 0xe19f5338
mov dword [ebp - 0x38], 0xb2f091cc
add dword [ebp - 0x38], 0x4d0f6e34
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x35cfa
push 0
call eax
mov ecx, 0xec8d0ae8
sub ecx, 0xec8cc655
xor esi, esi
add esi, eax
mov edx, 0x89391eda
add edx, 0x86c7db26
add edx, dword [ebp - 0x34]
mov ebx, 0xf69cd2d9
sub dword [ebp - 0x1c], 0x98580e80
mov edi, dword [edx]
xor dword [ebp - 0x28], ebx
add edi, ebx
mov dword [ebp - 0x28], 0x122ee60
mov dword [esi], edi
sub dword [ebp - 0x10], 0x6b3a5f09
add esi, 0xf3c87554
add esi, 0xc378ab0
add edx, 0x6767e66d
sub edx, 0x6767e669
loop 0x10007d47
add eax, 0x8daaab91
add eax, 0x7256598e
mov ebx, eax
add eax, 0x455ca341
sub eax, 0x455ca33c
mov ecx, 0x436ea3df
add ecx, 0xcc915c21
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x411c00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c53f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00476667
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412dc0
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411ccb
push 4
lea ecx, [ebp - 0x14]
call fcn.00408330
lea ecx, [ebp - 0x14]
call fcn.00413900
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.00413400
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412d90
movzx eax, al
test eax, eax
jne 0x411cbc
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412e10
lea ecx, [ebp - 0x14]
call fcn.00405b90
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00413940
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d60
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d60
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.00411ab0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588606
mov esp, ebp
pop ebp
ret

Function at 0x4130e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x413104
xor eax, eax
jmp 0x413184
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41311b
xor eax, eax
jmp 0x413184
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x413167
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x413167
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x41313e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x413173
xor eax, eax
jmp 0x413184
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413181
xor eax, eax
jmp 0x413184
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4244e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6978
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408330
lea ecx, [ebp - 0x1c]
call fcn.00409f00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00452590
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b8c0
test eax, eax
jne 0x42454c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b840
jmp 0x424588
cmp dword [0x6436f4], 1
jne 0x42455a
call fcn.00423d10
cmp dword [0x651f78], 0
je 0x424572
mov ecx, dword [0x651f78]
push ecx
call fcn.004226b0
add esp, 4
push 0
call fcn.00589c82
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588606
mov esp, ebp
pop ebp
ret

Function at 0x427070
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
push 0x614cf6
lea ecx, [ebp - 0x2c]
call fcn.00406640
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x14], 2
jl 0x427113
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.00430020
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f610
lea ecx, [ebp - 0x54]
call fcn.004066d0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406680
mov edx, dword [ebp - 0x34]
or edx, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004066d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588606
mov esp, ebp
pop ebp
ret
Function at 0x436c90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7efb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x615bb8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.00430020
add esp, 8
mov dword [ebp - 4], 0
push 0x614df6
lea eax, [ebp - 0x230]
push eax
call fcn.0040a150
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436d2c
push 0x615bc8
lea ecx, [ebp - 0x230]
call fcn.00408b60
jmp 0x436d57
lea ecx, [ebp - 0x230]
call fcn.00406750
push eax
call fcn.0043cf40
add esp, 4
movzx edx, al
test edx, edx
jne 0x436d57
push 0x615bcc
lea ecx, [ebp - 0x230]
call fcn.00408b60
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00430550
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406680
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x248]
call fcn.004066d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004066d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588606
mov esp, ebp
pop ebp
ret
Function at 0x43ccf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43cd0a
xor eax, eax
jmp 0x43cdf9
mov eax, dword [ebp + 8]
push eax
call fcn.0058a648
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x14], 1
cmp byte [ebp - 1], 0
jne 0x43cd28
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x43cd5b
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43cdc4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43cd7f
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43cdc2
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a698
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cdb9
mov eax, dword [ebp - 8]
push eax
call fcn.0058a6f8
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cdb9
or eax, 0xffffffff
jmp 0x43cdf9
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43cd52
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a698
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cdea
mov eax, dword [ebp - 8]
push eax
call fcn.0058a6f8
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00588e44
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43cf5b
xor al, al
jmp 0x43cf69
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43cf67
mov al, 1
jmp 0x43cf69
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4405b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c89a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x4405f0
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4405fc
mov al, 1
jmp 0x44079f
mov dword [ebp - 0x54], 8
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.00404fb0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404f80
add esp, 8
movzx eax, al
test eax, eax
je 0x44063f
xor al, al
jmp 0x44079f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004070b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00406b70
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.00440b40
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4406ba
cmp dword [ebp - 0x3c], 1
je 0x4406c1
cmp dword [ebp - 0x3c], 3
je 0x44075b
jmp 0x440773
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x440724
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6f0
mov ecx, eax
call fcn.0040ba10
push eax
call fcn.0058b3bd
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x440724
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x34]
jmp 0x44079f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x440747
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x31]
jmp 0x44079f
cmp dword [ebp - 0x38], 0
jne 0x440759
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004344e0
jmp 0x44078b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x33]
jmp 0x44079f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x32]
jmp 0x44079f
jmp 0x440652
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588606
mov esp, ebp
pop ebp
ret