joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x444ec0], 0
je 0x415a81
cmp word [0x44519c], 0xd7b2
jne 0x415a49
cmp dword [0x4451a4], 0
jbe 0x415a49
mov eax, 0x445198
call dword [0x4451b4]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x415aac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x43b74c], 0
jne 0x415a9d
push 0
push 0x43beb4
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x41760c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x417773
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0041623c
cmp si, word [0x43bef0]
jb 0x4176a6
cmp si, word [0x43c0f0]
ja 0x4176a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4176a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43bef0]
jae 0x417680
mov edi, ebx
dec edi
jmp 0x4176a1
cmp si, word [ebx*8 + 0x43bef0]
jbe 0x417690
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4176a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43bef4]
call fcn.0041751c
jmp 0x4176a6
cmp edi, dword [ebp - 0xc]
jae 0x41766a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x417755
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x417755
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x164]
push 0x417790
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x168]
push 0x4177a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00416710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41777a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00416234
ret
Function at 0x40a4fa
Capabilities:
Encode data using xor

Disassembly:
jno 0x40a551
rol cl, 1
push es
mov ebp, 0x4e67fab7
adc al, 0xf0
mov eax, 0xf2089005
inc edx
xor eax, 0x2d497cd7
popal
and cl, bl
invalid
dec ebp
sbb byte [ebx + 8], dh
and al, 0x6a
rcr dword [eax], 1
sub dword [ebp - 0x70], esi
inc edi
pop eax
and dl, byte [ebp + 0x37]
in eax, 0x1c
push eax
bound ecx, qword [ebx]
adc dword [ebx], esp
inc ebp
in eax, dx
jp 0x40a57f
retf
inc ecx
xor al, 0xec
mov ch, 0xe8
push esi
adc cl, byte [ebx + 0x3a78289c]
xchg edx, eax
add dword [bx - 0x44a7], 0x321f76b0
xchg ecx, eax
imul ebp, dword [edx - 0x29f998eb], 0x39fa7fe7
dec esp
push 0x5d475152
cmp dword [eax + ebp*2 + 0x52], ecx
push ecx
inc edi
pop ebp
push ebp
sahf
in eax, dx
mov esi, 0x499ec6a1
aad 0x47
xor ecx, eax
push edx
rol eax, 1
fstp qword [ebx + 0x3f02e6a4]
mov esp, ecx
out dx, al
clc
and byte [di], ah
arpl word [esi - 0x6c3f25dd], bx
out dx, eax
or eax, 0x1b9ba1dc
jb 0x40a59f
mov al, byte [esi]
pop edi
xchg ebp, eax
loop 0x40a5f7
xchg edi, eax
mov dword [0x48c92fc], eax
inc esp
dec ebp
ljmp 0x593f
sbb al, 0x3e
enter 0xffffffffffff9db4, 0xffffffffffffff99
invalid

Function at 0x4a3aea
Capabilities:
Encode data using xor

Disassembly:
cmc
invalid
inc edi
sub esp, dword [edi - 0x4cb168c4]
dec esi
inc ebp
mov dh, ch
js 0x4a39cb
pop ecx
enter 0xffffffffffffd899, 0x38
imul byte [eax]
mov ch, 0x37
and al, 0x7c
aad 0x6c
fist dword [ebx - 0x15]
mov ch, 0x80
mov ah, 0x6b
sbb byte [ebp - 0x5e], dl
invalid
stc
cmp ecx, 0x18
dec ecx
mov eax, 0xc16bd23f
sbb byte [ecx - 0x48], cl
aas
shr byte [ebx - 0x3f], cl
add byte [edx], ch
dec ecx
jo 0x4a3ac2
insb byte es:[edi], dx
fcomp dword [0xbe448f4]
mov al, 0xbb
movsb byte es:[edi], byte [esi]
popfd
int3
jp 0x4a3a11
sal cl, 0x8a
jg 0x4a3a3a
or ebx, dword [0xd53a060a]
cmp dl, ch
aad 0xf4
std
mov byte [0x46eb6501], al
xchg dl, dl
cdq
rcr dword ds:[edx], cl
rcl ch, 6
xchg ebp, eax
out dx, al
inc esp
fisub dword [ebp + 0x42]
mov ecx, dword [ecx]
push ebp
dec eax
mov edx, 0x51edae5b
test byte [0x75b3e71b], 0xe7
movsd dword es:[edi], dword [esi]
into
das
add byte [eax], 0x92
inc edx
arpl word [edx], ax
and eax, 0x4d655494
xchg ebp, eax
sub ch, al
test byte [ecx - 0x38], ah
lahf
cmp al, 0x1f
jnp 0x4a3b0b
sub ah, cl
pop esp
pop ds
test eax, 0xbfd2ab92
je 0x4a3a3d
out 0xf, eax
inc ecx
jmp 0x4a3a6a
wait
xchg ebp, eax
sub dword [edx], edx
pop ebx
pop ebx
jecxz 0x4a3a5f
mov ah, 0xae
xor al, 0x2a
add bh, byte [edx - 0x7c]
sbb eax, 0xbe7f9a36
jae 0x4a3afe
inc ecx
sbb ah, byte [ebp - 0x26]
add al, 0xd5
xor eax, 0x324cb1f
inc edi
sbb ah, byte [edi + 0x29a0a4ac]
sub dword [eax - 0x1285b9ff], ecx
dec edx
pop ebx
das
sub bl, bl
invalid
aas
jg 0x4a3b2c

Function at 0x58e862
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0xb9d44709
sti
fst st(1)
rcl esp, 1
xchg byte [edi + 0x11], dh
jb 0x58e8de
xor al, 0xd5
jne 0x58e8bb
sub byte [ecx - 0x1fab6bed], bl
insb byte es:[edi], dx
mov eax, dword [0xfce6fa21]

Function at 0x5ea450
Capabilities:
Encode data using xor

Disassembly:
sti
jl 0x5ea472
mov bl, 0x94
sbb dword [ebx + 0x6477211], ecx
inc esi
mov ebp, 0x4a9c2b4f
jge 0xeb364e11
inc eax
invalid
cmp eax, 0x45e2b1fe
invalid
Function at 0x6ab340
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x131000]
push edi
jmp 0x6ab35a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6ab361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ab350
mov eax, 1
add ebx, ebx
jne 0x6ab373
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6ab384
jne 0x6ab3a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ab3a3
dec eax
add ebx, ebx
jne 0x6ab390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6ab368
add ebx, ebx
jne 0x6ab39f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6ab3f5
xor ecx, ecx
sub eax, 3
jb 0x6ab3bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6ab42a
sar eax, 1
mov ebp, eax
jmp 0x6ab3c6
add ebx, ebx
jne 0x6ab3c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ab394
inc ecx
add ebx, ebx
jne 0x6ab3d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ab394
add ebx, ebx
jne 0x6ab3e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6ab3d6
jne 0x6ab3f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6ab3d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6ab414
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6ab406
jmp 0x6ab356
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6ab414
add edi, ecx
jmp 0x6ab356
pop esi
mov edi, esi
mov ecx, 0x507e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6ab432
cmp byte [edi], 0x1d
jne 0x6ab432
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 0x6ab437
lea edi, [esi + 0x2a8000]
mov eax, dword [edi]
or eax, eax
je 0x6ab4af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2bc4c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2bc5fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6ab464
mov ecx, edi
jns 0x6ab493
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 + 0x2bc604]
or eax, eax
je 0x6ab4a9
mov dword [ebx], eax
add ebx, 4
jmp 0x6ab481
call dword [esi + 0x2bc600]
mov ebp, dword [esi + 0x2bc608]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x6ab4e3
sub esp, 0xffffff80
jmp 0x4bc0d1
Function at 0x411c00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4f38
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x641490]
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.004761f1
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.005881d6
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 0x422690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6128
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp + 8]
call fcn.00406750
push eax
call fcn.00430120
add esp, 8
lea ecx, [ebp - 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005881d6
mov esp, ebp
pop ebp
ret
Function at 0x424560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c64e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x641490]
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.00452130
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b8c0
test eax, eax
jne 0x4245cc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b840
jmp 0x424608
cmp dword [0x6426f4], 1
jne 0x4245da
call fcn.00423d90
cmp dword [0x650f78], 0
je 0x4245f2
mov ecx, dword [0x650f78]
push ecx
call fcn.00422710
add esp, 4
push 0
call fcn.00589810
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.005881d6
mov esp, ebp
pop ebp
ret
Function at 0x4270f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6a63
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], 0
push 0x613d06
lea ecx, [ebp - 0x58]
call fcn.00406640
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.004301c0
add esp, 8
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00408330
lea ecx, [ebp - 0x28]
call fcn.00409f00
mov byte [ebp - 4], 2
push 0x614808
lea ecx, [ebp - 0x88]
call fcn.00406640
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0042fc50
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408330
lea ecx, [ebp - 0x1c]
call fcn.00409f00
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0
jmp 0x4271ce
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x28]
call fcn.0041cf50
cmp dword [ebp - 0x8c], eax
jae 0x427247
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409f50
push eax
lea ecx, [ebp - 0x40]
call fcn.004065b0
mov byte [ebp - 4], 5
push 0x613d07
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041eab0
add esp, 8
movzx edx, al
test edx, edx
je 0x427236
push 0x61480c
lea eax, [ebp - 0x40]
push eax
call fcn.0041eab0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427236
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041cf70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004066d0
jmp 0x4271bf
mov dword [ebp - 0x90], 0
jmp 0x427262
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
call fcn.0041cf50
cmp dword [ebp - 0x90], eax
jae 0x427274
jmp 0x427253
lea ecx, [ebp - 0x1c]
call fcn.0041cf50
cmp eax, 2
jb 0x427294
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409f50
push eax
lea ecx, [ebp - 0x58]
call fcn.004070f0
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406680
mov edx, dword [ebp - 0x94]
or edx, 1
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409f30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004066d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
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.005881d6
mov esp, ebp
pop ebp
ret
Function at 0x436e30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x641490]
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 0x614bd8
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.004301c0
add esp, 8
mov dword [ebp - 4], 0
push 0x613e06
lea eax, [ebp - 0x230]
push eax
call fcn.0040a150
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436ecc
push 0x614be8
lea ecx, [ebp - 0x230]
call fcn.00408b60
jmp 0x436ef7
lea ecx, [ebp - 0x230]
call fcn.00406750
push eax
call fcn.0043d0e0
add esp, 4
movzx edx, al
test edx, edx
jne 0x436ef7
push 0x614bec
lea ecx, [ebp - 0x230]
call fcn.00408b60
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.004306f0
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.005881d6
mov esp, ebp
pop ebp
ret
Function at 0x43ce90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43ceaa
xor eax, eax
jmp 0x43cf99
mov eax, dword [ebp + 8]
push eax
call fcn.0058a1d6
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 0x43cec8
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 0x43cefb
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43cf64
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43cf1f
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43cf62
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.0058a226
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cf59
mov eax, dword [ebp - 8]
push eax
call fcn.0058a286
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cf59
or eax, 0xffffffff
jmp 0x43cf99
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43cef2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a226
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cf8a
mov eax, dword [ebp - 8]
push eax
call fcn.0058a286
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00588a14
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x43d0e0
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 0x43d0fb
xor al, al
jmp 0x43d109
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43d107
mov al, 1
jmp 0x43d109
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x440750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8548
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x641490]
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 0x440790
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x44079c
mov al, 1
jmp 0x44093f
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 0x4407df
xor al, al
jmp 0x44093f
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.00440ce0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x44085a
cmp dword [ebp - 0x3c], 1
je 0x440861
cmp dword [ebp - 0x3c], 3
je 0x4408fb
jmp 0x440913
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 0x4408c4
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.0058af4b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4408c4
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x34]
jmp 0x44093f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4408e7
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x31]
jmp 0x44093f
cmp dword [ebp - 0x38], 0
jne 0x4408f9
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00434680
jmp 0x44092b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x33]
jmp 0x44093f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066d0
mov al, byte [ebp - 0x32]
jmp 0x44093f
jmp 0x4407f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005881d6
mov esp, ebp
pop ebp
ret
Function at 0x4430f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8810
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
call fcn.00427fb0
mov byte [ebp - 0x25], 0
lea ecx, [ebp + 8]
call fcn.00406750
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4431dc
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2c]
cmp dword [ecx + edx*4], 0
je 0x4431da
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.00406640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.00431a80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004066d0
mov byte [ebp - 0x25], 1
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x44314e
jmp 0x4431e0
mov byte [ebp - 0x25], 0
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0x26], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066d0
mov al, byte [ebp - 0x26]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005881d6
mov esp, ebp
pop ebp
ret