joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d30
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x438738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
push 2
push 0x4484a0
lea ecx, [esp + 0x1c]
call fcn.004237f6
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
push edi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004239df
push 0x448444
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.004239df
mov ebp, dword [esp + 0x30]
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push ebp
push eax
push edx
mov byte [esp + 0x34], 2
call fcn.004239df
mov ecx, esi
call fcn.00407250
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00423788
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00423788
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.00423788
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
je 0x405df7
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x448484
jmp 0x405e05
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x448470
call fcn.004237f6
mov ecx, esi
call fcn.00407250
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret 8
Function at 0x406090
Capabilities:
Connect to http server
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x438766
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push esi
mov esi, ecx
lea edx, [esp + 0x360]
lea ecx, [esp + 0x54]
mov eax, 0x104
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x25c]
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x478]
push ebx
lea eax, [esp + 0x160]
push edx
push eax
push ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0x3c
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x15c]
push edx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 3
push 0x448594
lea ecx, [esp + 0x1c]
call fcn.004237f6
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov dword [esp + 0x480], ebx
call fcn.004239df
push ecx
mov byte [esp + 0x478], 1
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0042364d
mov ecx, edi
call fcn.00407250
lea ecx, [esp + 0x10]
mov byte [esp + 0x470], bl
call fcn.00423788
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00423788
push ebx
push 0x8000000
lea eax, [esp + 0x268]
push 1
lea ecx, [esp + 0x370]
push eax
mov eax, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x6c]
push ebx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x4061f4
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x448580
call fcn.004237f6
mov ecx, edi
call fcn.00407250
push 0x448570
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00405e30
xor eax, eax
jmp 0x406213
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x44855c
call fcn.004237f6
mov ecx, edi
call fcn.00407250
mov eax, 1
mov ecx, dword [esp + 0x468]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x468
ret 4
Function at 0x4065e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4387c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
cmp byte [eax + 1], 0x3a
jne 0x40662f
push 0x5c
lea ecx, [esp + 0x48]
call fcn.0041da3c
cmp eax, 2
jne 0x40662b
mov dword [esp + 0x3c], 0xffffffff
jmp 0x4067a5
mov eax, dword [esp + 0x44]
mov cl, byte [eax + 1]
or edi, 0xffffffff
cmp cl, 0x5c
jne 0x4066e4
cmp byte [eax], 0x5c
jne 0x4066e4
lea eax, [esp + 0x10]
push 2
push eax
lea ecx, [esp + 0x4c]
call fcn.0041d89a
push 0x5c
mov ecx, eax
mov byte [esp + 0x40], 1
call fcn.00423c11
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.00423788
cmp esi, edi
je 0x406822
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x4c]
call fcn.0041d89a
push 0x5c
mov ecx, eax
mov byte [esp + 0x40], 2
call fcn.00423c11
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.00423788
cmp esi, edi
je 0x406822
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x4c]
call fcn.0041d89a
push 0x5c
mov ecx, eax
mov byte [esp + 0x40], 3
call fcn.00423c11
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.00423788
cmp esi, edi
je 0x4067a1
push 0x5c
lea ecx, [esp + 0x48]
call fcn.0041da3c
cmp eax, edi
je 0x4067a1
push 0x5c
lea ecx, [esp + 0x48]
call fcn.0041da3c
inc eax
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041d9c5
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 4
call fcn.00423881
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.00423788
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 8]
cmp byte [eax + ecx - 1], 0x5c
jne 0x40676a
mov edx, ecx
lea eax, [esp + 0x10]
dec edx
lea ecx, [esp + 0x44]
push edx
push eax
call fcn.0041d9c5
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 5
call fcn.00423881
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.00423788
lea ecx, [esp + 0x18]
call fcn.0040c887
mov ecx, dword [esp + 0x44]
push ebx
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 6
call fcn.0040c977
cmp eax, ebx
lea ecx, [esp + 0x18]
je 0x4067c8
call fcn.0040c92d
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], bl
call fcn.0040c8eb
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0x44]
call fcn.00423788
mov eax, 1
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4
call fcn.0040c92d
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0042364d
mov ecx, ebp
call fcn.004065e0
test eax, eax
je 0x406815
mov eax, dword [esp + 0x44]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x3c], bl
call fcn.0040c8eb
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], edi
call fcn.00423788
mov eax, esi
jmp 0x4067b3
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], bl
call fcn.0040c8eb
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], edi
call fcn.00423788
xor eax, eax
jmp 0x4067b3
Function at 0x4099b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x438df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi + 0xc8]
lea esi, [edi + 0xc8]
mov dword [edi + 0x74], ebp
mov dword [edi + 0xcc], 1
cmp dword [eax - 8], ebp
je 0x409a9d
mov al, byte [eax]
cmp al, 0x2f
je 0x409a9d
or ebx, 0xffffffff
cmp al, 0x22
jne 0x409a28
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call fcn.0041d89a
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.00423881
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.00423788
push 0x22
mov ecx, esi
call fcn.00423c11
cmp eax, ebx
je 0x409a5f
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d9c5
push eax
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.00423881
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.00423788
push 0x2f
mov ecx, esi
call fcn.00423c11
cmp eax, ebx
je 0x409a96
lea edx, [esp + 0x10]
push eax
push edx
mov ecx, esi
call fcn.0041d9c5
push eax
mov ecx, esi
mov dword [esp + 0x20], 2
call fcn.00423881
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
call fcn.00423788
mov ecx, esi
call fcn.0041dd35
cmp dword [0x44f0b4], 2
jne 0x409ac7
mov eax, dword [esi]
push eax
push 1
push 0x448cfc
push 0x4488cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov dword [edi + 0xcc], eax
mov eax, dword [0x44f0b4]
xor esi, esi
cmp eax, ebp
jle 0x409b37
mov ebx, 5
mov ecx, dword [0x44f0b8]
mov edx, dword [ecx + esi*4]
push edx
push 0x448cf8
call fcn.00416010
add esp, 8
test eax, eax
jne 0x409afd
mov dword [edi + 0x74], ebx
mov dword [edi + 0xcc], ebp
jmp 0x409b2d
mov eax, dword [0x44f0b8]
mov ecx, dword [eax + esi*4]
push ecx
push 0x448cf0
call fcn.00416010
add esp, 8
test eax, eax
jne 0x409b2d
mov edx, dword [0x44f0b8]
lea ecx, [edi + 0xc4]
mov eax, dword [edx + esi*4 + 4]
push eax
call fcn.004238d0
mov eax, dword [0x44f0b4]
inc esi
cmp esi, eax
jl 0x409ad7
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x40bc87
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x40bd0a
cmp dword [ebp + 8], ebx
je 0x40bd0a
mov eax, dword [ebp + 0x18]
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov esi, eax
and eax, 0xc0000000
and esi, 0x3e000000
mov dword [ebp + 0x18], eax
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 4], 0x80a
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call edi
cmp eax, ebx
jne 0x40bd13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40bd0a
push dword [ebp - 4]
call fcn.0041f236
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push esi
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 1
call edi
test eax, eax
jne 0x40bd19
push ebx
call fcn.0041f272
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
lea ebx, [ebp - 0x814]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x18]
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 8], 0
mov edi, eax
je 0x40bd38
push ebx
call fcn.0041f272
pop ecx
test edi, edi
jne 0x40bd41
mov eax, dword [ebp + 0x10]
jmp 0x40bd66
mov ecx, dword [ebp + 0x14]
mov ax, word [esi + 0x18]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
dec eax
je 0x40bdad
dec eax
je 0x40bda2
dec eax
je 0x40bd97
dec eax
je 0x40bd8c
dec eax
je 0x40bd81
dec eax
je 0x40bd76
dec eax
mov eax, dword [ebp + 0x10]
je 0x40bd6e
mov dword [eax], 0x1000
jmp 0x40bdb6
mov dword [eax], 0x1002
jmp 0x40bdb6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1006
jmp 0x40bdb6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1001
jmp 0x40bdb6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x100b
jmp 0x40bdb6
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x40bdb6
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x40bdb6
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
jmp 0x40bd0c

Function at 0x40bef8
Capabilities:
Create http request

Disassembly:
mov eax, 0x4399d0
call fcn.0040edc0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
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 0x40bf30
call fcn.00435372
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]
test eax, eax
mov dword [esi + 8], eax
jne 0x40bf55
push eax
push dword [esi + 4]
call fcn.0040c59a
jmp 0x40bf61
push esi
push eax
mov ecx, 0x44eae8
call fcn.0040bf72
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 0x18
Function at 0x40c1f1
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x439a4b
call fcn.0040edc0
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.0040c0b9
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0042363d
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [esi], vtable.CFtpConnection.0
call fcn.004238d0
mov eax, dword [ebp + 0x20]
push dword [esi + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x40c277
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.0040c59a
jmp 0x40c285
push dword [esi + 0xc]
mov ecx, 0x44eae8
push eax
call fcn.0040bf72
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c
Function at 0x40e8e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040e9a0
mov eax, dword [0x44f0e0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40e904
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x44f0dc], 1
mov byte [0x44f0d8], bl
jne 0x40e95e
mov ecx, dword [0x450770]
test ecx, ecx
je 0x40e94c
mov esi, dword [0x45076c]
sub esi, 4
cmp esi, ecx
jb 0x40e94c
mov eax, dword [esi]
test eax, eax
je 0x40e945
call eax
mov ecx, dword [0x450770]
sub esi, 4
cmp esi, ecx
jae 0x40e937
push 0x4480ac
push 0x4480a0
call fcn.0040e9c0
add esp, 8
push 0x4480b8
push 0x4480b0
call fcn.0040e9c0
add esp, 8
test ebx, ebx
je 0x40e97d
call fcn.0040e9b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x44f0e0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40eaa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440d90
push 0x412108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x44f0b0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x44f0ac], ecx
shl ecx, 8
add ecx, edx
mov dword [0x44f0a8], ecx
shr eax, 0x10
mov dword [0x44f0a4], eax
call fcn.00412390
test eax, eax
jne 0x40eb0a
push 0x1c
call fcn.0040ec50
add esp, 4
call fcn.00411ab0
test eax, eax
jne 0x40eb1d
push 0x10
call fcn.0040ec50
add esp, 4
mov dword [ebp - 4], 0
call fcn.00413370
call fcn.00410a70
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x450768], eax
call fcn.00413210
mov dword [0x44f0e4], eax
test eax, eax
je 0x40eb50
mov eax, dword [0x450768]
test eax, eax
jne 0x40eb5a
push 0xffffffffffffffff
call fcn.0040e8a0
add esp, 4
call fcn.00412f60
call fcn.00412e70
call fcn.0040e870
mov esi, dword [0x450768]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40ec39
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40eba1
test al, al
je 0x40eba1
and eax, 0xff
push eax
call fcn.00412e10
add esp, 4
test eax, eax
je 0x40eb7b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40eb7b
cmp byte [esi], 0x22
jne 0x40ebaa
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40ebba
cmp al, 0x20
ja 0x40ebba
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ebaa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40ebdb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40ebe0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040e8a0
jmp 0x40ec1e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40ebaa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ec39
Function at 0x411ab0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00411cd0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x449da0], eax
je 0x411b08
push 0x74
push 1
call fcn.0040fee0
mov esi, eax
add esp, 8
test esi, esi
je 0x411b08
mov eax, dword [0x449da0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x411b08
push esi
call fcn.00411b10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x411b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x449da0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x411b9e
push 0x74
push 1
call fcn.0040fee0
mov esi, eax
add esp, 8
test esi, esi
je 0x411b94
mov ecx, dword [0x449da0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x411b94
push esi
call fcn.00411b10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040ec50
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410340
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x412038
test byte [esp + 8], 2
je 0x412038
call fcn.004103c0
mov dword [eax], 0xd
call fcn.004103d0
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x413210
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44f3c8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x413252
call edi
mov esi, eax
test esi, esi
je 0x41323c
mov eax, 1
jmp 0x41324d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41335f
mov eax, 2
mov dword [0x44f3c8], eax
cmp eax, 1
jne 0x4132f2
test esi, esi
jne 0x41326b
call edi
mov esi, eax
test esi, esi
je 0x41335f
cmp word [esi], 0
mov eax, esi
je 0x413285
add eax, 2
cmp word [eax], 0
jne 0x413273
add eax, 2
cmp word [eax], 0
jne 0x413273
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4132e4
push edi
call fcn.0040ece0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4132e4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4132d6
push ebx
call fcn.0040ea30
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41335f
test ebx, ebx
jne 0x413303
call ebp
mov ebx, eax
test ebx, ebx
je 0x41335f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41331b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41330b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41330b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040ece0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41333d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4135c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x44bf58
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4135e4
add eax, 8
inc ebp
cmp eax, 0x44bfe8
jb 0x4135d5
cmp ecx, dword [ebp*8 + 0x44bf58]
jne 0x41378b
mov eax, dword [0x44f0ec]
cmp eax, 1
je 0x41374d
test eax, eax
jne 0x413610
cmp dword [0x449a64], 1
je 0x41374d
cmp ecx, 0xfc
je 0x41378b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41364b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x413694
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x441230
add ebx, ecx
push ebx
call fcn.004162b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x441210
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x44bf5c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00416220
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x450660]
test eax, eax
je 0x41375e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x413768
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x44bf5c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret