joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f2d4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404a14
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402e74
test ebx, ebx
je 0x45f31f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x45f3fc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45f42d
mov ecx, dword [0x463b30]
mov dl, 1
mov eax, dword [0x45e3d0]
call fcn.0040a300
call fcn.00403f40
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45f45a
mov ecx, dword [0x463ae4]
mov dl, 1
mov eax, dword [0x45e3d0]
call fcn.0040a300
call fcn.00403f40
xor eax, eax
push ebp
push 0x45f4d6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403970
cmp byte [ebp + 8], 0
je 0x45f4b2
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045f364
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045f24c
jmp 0x45f4cc
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ed50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f4f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45f6d4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045f00c
xor eax, eax
push ebp
push 0x45f846
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45f830
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45f71f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45f729
call fcn.00403fec
jmp 0x45f84d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162cc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x45f825
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x45f7d7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45f7c4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403970
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045f68c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45f858]
cmp dl, byte [eax + 0x28]
je 0x45f82c
call fcn.0040a1e8
jmp 0x45f82c
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162ec
jmp 0x45f82c
cmp ecx, ebx
jge 0x45f7f3
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162ec
jmp 0x45f729
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162cc
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416300
cmp edx, dword [esp + 4]
jne 0x45f814
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45f729
push ebp
call fcn.0045f68c
pop ecx
jmp 0x45f82c
push ebp
call fcn.0045f68c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f84d
mov eax, dword [ebp - 4]
call fcn.0045f018
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f85c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f97e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045f00c
xor eax, eax
push ebp
push 0x45f961
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45f8ac
call fcn.00403fec
jmp 0x45f968
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45f94b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45f94b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403970
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45f94b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004099f0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45f998
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x463bd8]
mov dl, 1
mov eax, dword [0x45e3d0]
call fcn.0040a33c
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f968
mov eax, dword [ebp - 4]
call fcn.0045f018
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f985
lea eax, [ebp - 0x28]
call fcn.00404564
ret
Function at 0x401120
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x82c
mov eax, dword [0x433448]
xor eax, esp
mov dword [esp + 0x828], eax
mov eax, dword [esp + 0x834]
push ebx
mov ebx, dword [esp + 0x83c]
push ebp
mov ebp, dword [esp + 0x848]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x840]
push eax
push 0x435920
lea eax, [esp + 0x20]
push 0x4292ec
push eax
call fcn.00405500
lea eax, [esp + 0x230]
push esi
push eax
call fcn.00402320
add esp, 0x18
test eax, eax
jne 0x4011b4
push esi
push str.An_error_occurred_while_attempting_to_find_the_path_to__s._n
call fcn.00404f50
cmp byte [esi], 0x64
mov ecx, str.in_the_Start_menu
mov eax, str.on_the_desktop
cmovne eax, ecx
push eax
push edi
push str.An_error_has_occurred.__A_shortcut_to__s_will_not_be_created__s._n
call fcn.00404f50
add esp, 0x14
jmp 0x4012ec
lea eax, [esp + 0x220]
push eax
call fcn.004132c4
push edi
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x63c]
push str._s_s.lnk
push eax
call fcn.00405500
add esp, 0x14
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4011fd
push str.Error:__Could_not_open_the_COM_library.__Not_creating_shortcut._n
call fcn.00404f50
add esp, 4
jmp 0x4012ec
lea eax, [esp + 0x10]
push eax
push 0x429d68
push 1
push 0
push 0x429d88
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4012de
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x429d78
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4012cf
push 0x208
lea eax, [esp + 0x224]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x63c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x10]
push ebp
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, 1
jmp 0x4012ee
push str.QueryInterface_Error_n
call fcn.00404f50
add esp, 4
jmp 0x4012ec
push eax
push str.CoCreateInstance_Error___hres___08x_n
call fcn.00404f50
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x838]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004060bb
add esp, 0x82c
ret
Function at 0x4020e0
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
push dword [0x435908]
call fcn.00404d90
push 0x4279f0
call fcn.00414bb7
mov edi, dword [esp + 0x18]
add esp, 8
mov esi, 0x432240
push dword [esi - 0x14]
call fcn.00405100
add esp, 4
mov dword [esi], eax
test edi, edi
jne 0x402123
push dword [esi - 0xc]
call fcn.00405100
add esp, 4
mov dword [esi + 4], eax
cmp dword [0x433f28], 0
jne 0x40217c
mov eax, dword [esi]
test eax, eax
je 0x40217c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402135
sub eax, edx
inc eax
push eax
call fcn.0041132b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40221d
mov edx, dword [esi]
mov dword [0x433f28], ecx
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x402160
push dword [0x433f28]
call fcn.00404f80
add esp, 4
test edi, edi
je 0x402195
mov eax, dword [esi]
test eax, eax
je 0x402195
push eax
call fcn.00411310
add esp, 4
mov dword [esi], 0
add esi, 0x228
cmp esi, 0x433380
jl 0x402104
mov cl, byte [0x435920]
mov eax, 0x435920
test cl, cl
je 0x402219
cmp byte [0x435921], 0x3a
jne 0x40220b
mov ax, word [0x4279f4]
mov word [esp + 8], ax
mov al, byte [0x4279f6]
push ebx
movsx ebx, cl
mov byte [esp + 0xe], al
lea edx, [ebx - 0x61]
lea eax, [ebx - 0x20]
cmp edx, 0x19
movzx ecx, al
movzx eax, bl
cmova ecx, eax
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x10], cl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebx
test eax, eax
je 0x402219
cmp byte [0x435922], 0
mov eax, 0x435922
je 0x402219
pop edi
pop esi
add esp, 4
mov dword [esp + 4], eax
jmp fcn.00414bb7
pop edi
pop esi
pop ecx
ret
push str.ERROR:_out_of_memory_n
call fcn.00404f50
add esp, 4
push 1
call fcn.00411671
int3
Function at 0x4025a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x433448]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
push str.VIMRUNTIME
call fcn.00412591
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40264a
cmp byte [ecx], 0
je 0x40264a
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4025d7
sub edx, esi
cmp edx, 0x208
jae 0x40264a
lea edx, [esp + 0x210]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4025f1
lea ecx, [esp + 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402608
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x402641
nop dword [eax + eax]
lea edx, [esp + 0x210]
mov cl, byte [edx + eax]
cmp cl, 0x2f
je 0x40263d
cmp cl, 0x5c
je 0x40263d
dec eax
test eax, eax
jg 0x402620
mov esi, edx
jmp 0x402671
mov byte [edx + eax], 0
lea esi, [esp + 0x210]
jmp 0x402671
push 0x427c58
call fcn.00412591
mov esi, eax
add esp, 4
test esi, esi
je 0x402662
cmp byte [esi], 0
jne 0x402671
mov eax, dword [0x433f2c]
mov esi, 0x42731e
test eax, eax
cmovne esi, eax
lea eax, [esp + 8]
push eax
push 0x1fc
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402688
sub ecx, edx
test ecx, ecx
jle 0x4026b9
mov al, byte [esp + ecx + 7]
cmp al, 0x5c
je 0x4026b9
cmp al, 0x2f
je 0x4026b9
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4026a6
mov ax, word [0x4279f0]
mov word [edi], ax
lea ecx, [esp + 8]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4026c0
mov eax, dword [str.vimini.ini]
mov dword [ecx], eax
mov eax, dword [0x427c60]
mov dword [ecx + 4], eax
mov ax, word [0x427c64]
mov word [ecx + 8], ax
mov al, byte [0x427c66]
mov byte [ecx + 0xa], al
lea eax, [esp + 8]
push 0x4279ac
push eax
call fcn.00409922
mov edi, eax
add esp, 8
test edi, edi
je 0x40273a
push str._vimini__n
push edi
call fcn.00402240
push esi
push str.dir__s__n
push edi
call fcn.00402240
push edi
call fcn.004094d8
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004060bb
add esp, 0x414
ret
lea eax, [esp + 8]
push eax
push str.Failed_to_open__s_n
call fcn.00404f50
add esp, 8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.004060bb
add esp, 0x414
ret
Function at 0x404d90
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
test al, al
je 0x404df7
cmp byte [esi + 1], 0x3a
jne 0x404dec
push ebx
movsx ebx, al
mov ax, word [0x4279f4]
mov word [esp + 0xc], ax
mov al, byte [0x4279f6]
mov byte [esp + 0xe], al
lea edx, [ebx - 0x61]
lea eax, [ebx - 0x20]
cmp edx, 0x19
movzx ecx, al
movzx eax, bl
cmova ecx, eax
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x10], cl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebx
test eax, eax
jne 0x404de4
or eax, 0xffffffff
pop esi
ret
add esi, 2
cmp byte [esi], 0
je 0x404df7
push esi
call fcn.00414bb7
add esp, 4
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x406798
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4067d7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4067d7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4067d7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4067d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4067d7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x413093
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x433448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42b648
push esi
call fcn.0041a261
pop ecx
pop ecx
test eax, eax
jne 0x4130c1
xor al, al
jmp 0x41313e
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00412dd4
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4130fb
push dword [ebp - 0x210]
call fcn.00411310
xor al, al
jmp 0x41313c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x413101
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x413121
push edx
call fcn.00412fca
pop ecx
test al, al
je 0x4130ec
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41312f
mov bl, 1
push dword [ebp - 0x210]
call fcn.00411310
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004060bb
leave
ret

Function at 0x4152c9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42be80
push 0x42be78
push str.FlsAlloc
push 0x1f
call fcn.00415188
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4152fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261cc]
call esi
jmp 0x415303
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415347
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42be90
push 0x42be88
push str.FlsGetValue
push 0x21
call fcn.00415188
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41537e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415386
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42be98
push 0x42be90
push str.FlsSetValue
push 0x22
call fcn.00415188
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4153c0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4261cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41bb9a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41bc37
push ebx
push esi
call fcn.0041bb63
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041baf7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bbe4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bc36
push edi
push eax
call fcn.004176a8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41bc04
call fcn.0041501b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bc35
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041baf7
add esp, 0x20
test eax, eax
jne 0x41bc23
push edi
call fcn.0041501b
jmp 0x41bc2b
push ebx
call fcn.0041501b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41bc3a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41bc4b
pop esi
ret
push ebx
push edi
push esi
call fcn.0041bb63
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004176a8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41bc73
push ebx
push esi
push edi
call fcn.00407cc0
add esp, 0xc
push 0
call fcn.0041501b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41c3cd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041bee8
Function at 0x41d9ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x434dd0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41da2e
cmp byte [ebx], 0xa
jne 0x41da2e
or byte [edi + eax + 0x28], 4
jmp 0x41da33
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41db32
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41db15
inc eax
cmp dl, 0xd
je 0x41da5f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41da85
cmp eax, ecx
jae 0x41da93
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41da47
jmp 0x41db32
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41db10
cmp dword [ebp - 0x10], 0
je 0x41db10
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x434dd0]
test byte [eax + edi + 0x28], 0x48
je 0x41daea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41dad5
mov byte [esi], dl
jmp 0x41dae6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434dd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41db32
cmp byte [ebp - 1], 0xa
jne 0x41daf9
cmp esi, ebx
jne 0x41daf9
mov byte [esi], 0xa
jmp 0x41db31
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417c8b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41db32
mov byte [esi], 0xd
jmp 0x41db31
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x434dd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41db2f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41db32
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41db3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x434dd0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41db81
cmp word [ebx], dx
jne 0x41db81
or byte [eax + edi + 0x28], 4
jmp 0x41db86
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41dce9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41dcc9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41dbc7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41dbfd
cmp eax, edx
jae 0x41dc0b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41dba2
jmp 0x41dce9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dcc4
cmp dword [ebp - 0x18], 0
je 0x41dcc4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x434dd0]
test byte [eax + edi + 0x28], 0x48
je 0x41dc9a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41dc5e
mov word [esi], cx
jmp 0x41dc95
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x434dd0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x434dd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434dd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41dce9
pop eax
cmp word [ebp - 4], ax
jne 0x41dcaa
cmp esi, ebx
jne 0x41dcaa
mov word [esi], ax
jmp 0x41dce6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417c8b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41dce9
push 0xd
pop eax
jmp 0x41dca5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x434dd0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41dce3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41dce9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4218c2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x421905
call fcn.00414f98
mov dword [eax], 0xf
call fcn.00414fab
mov dword [eax], 0xd
call fcn.00414eca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004060bb
leave
ret
test eax, eax
jne 0x42190c
inc eax
jmp 0x4218f9
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4218f7
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4218f9