joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401e26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401eba
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401e75
cmp eax, 0x40
je 0x401e75
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401e19
cmp eax, 0x40
je 0x401e19
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401e19
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40e4a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x46a278]
xor eax, ebp
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
push 0x4554a4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x40e4dc
xor al, al
jmp 0x40e5e7
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e515
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40e5e7
push 0x400
push 0
lea eax, [ebp - 0x808]
push eax
call fcn.0043d9e0
add esp, 0xc
push 0x400
push 0
lea ecx, [ebp - 0x408]
push ecx
call fcn.0043d9e0
add esp, 0xc
push str.No_input_file_specified._n
push 0x3ff
lea edx, [ebp - 0x408]
push edx
call fcn.0043f8e8
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
xor ecx, ecx
cmp ecx, dword [ebp - 0x80c]
sbb edx, edx
neg edx
and eax, edx
je 0x40e5ce
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.0043f860
add esp, 8
test eax, eax
jne 0x40e5b5
push 0
push 0
lea edx, [ebp - 0x808]
push edx
call fcn.00428d84
xor al, al
jmp 0x40e5e7
lea eax, [ebp - 0x808]
push eax
push 0x4554dc
call fcn.0043f770
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x810]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043d97d
mov esp, ebp
pop ebp
ret
Function at 0x414340
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x46a278]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x454], ecx
mov ecx, dword [ebp + 8]
call fcn.0040eb10
mov dword [ebp - 0x11c], eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00414fd0
mov ecx, eax
call fcn.0040eb10
mov dword [ebp - 0x22c], eax
push 0x5c
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00414da0
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4143a8
xor al, al
jmp 0x41455f
push 0x104
push 0
lea ecx, [ebp - 0x338]
push ecx
call fcn.0043d9e0
add esp, 0xc
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x11c]
add edx, 1
push edx
mov eax, dword [ebp - 0x11c]
push eax
push 0x103
lea ecx, [ebp - 0x338]
push ecx
call fcn.00440259
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push 0
push 0x456640
lea eax, [ebp - 0x338]
push eax
call dword [0x4542a0]
test eax, eax
jne 0x41440f
xor al, al
jmp 0x41455f
push 0x2f
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00414da0
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x41443d
mov edx, dword [ebp - 0x114]
movsx eax, byte [edx + 1]
test eax, eax
jne 0x414444
xor al, al
jmp 0x41455f
mov ecx, dword [ebp - 0x114]
add ecx, 1
push ecx
push 0x103
lea edx, [ebp - 0x228]
push edx
call fcn.0043f8e8
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00414fb0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x33c], 0
jmp 0x41448e
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x118]
jge 0x414518
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x454]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00414dc0
lea edx, [ebp - 0x450]
push edx
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00414fd0
mov ecx, eax
call fcn.0040eb10
push eax
push 0
call fcn.0044ff2a
test eax, eax
jge 0x414511
lea edx, [ebp - 0x110]
push edx
call dword [0x454294]
mov eax, dword [ebp - 0x118]
sub eax, 1
cmp dword [ebp - 0x33c], eax
jne 0x41450f
xor al, al
jmp 0x41455f
jmp 0x414513
jmp 0x414518
jmp 0x41447f
push 1
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [0x454298]
test eax, eax
jne 0x41455d
push 5
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [0x454298]
test eax, eax
jne 0x41455d
lea edx, [ebp - 0x110]
push edx
call dword [0x454294]
xor al, al
jmp 0x41455f
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d97d
mov esp, ebp
pop ebp
ret 4
Function at 0x417a90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
push 0x470010
call fcn.0043f950
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
call fcn.0040f350
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [0x46b648]
jne 0x417bbe
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x78
je 0x417ae4
cmp dword [ebp - 0x18], 0x7b
je 0x417b0f
cmp dword [ebp - 0x18], 0x7d
je 0x417ba0
jmp 0x417bba
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x8a0], eax
push 0x79
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8a0]
push ecx
call dword [0x454520]
jmp 0x417bba
mov edx, dword [ebp - 8]
push edx
call dword [0x4544fc]
call dword [0x454500]
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
call dword [0x454324]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x454328]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0043d9e0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0x470010
mov edx, dword [ebp - 0x10]
push edx
call fcn.0043fe80
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [0x45432c]
mov ecx, dword [ebp - 0xc]
push ecx
push 1
call dword [0x454504]
call dword [0x454508]
push 0x7b
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8a0]
push edx
call dword [0x454520]
jmp 0x417bba
push 0x7a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8a0]
push eax
call dword [0x454520]
xor eax, eax
jmp 0x417bd2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004223de
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bcc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x46a278]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x14]
call fcn.0041ba90
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bc60
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41bd2b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x124], edx
lea ecx, [ebp - 0x14]
call fcn.0041bac0
mov eax, dword [ebp - 0x124]
jmp 0x41bdbc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [0x454018]
test eax, eax
jne 0x41bd91
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bcc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41bd88
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x128], edx
lea ecx, [ebp - 0x14]
call fcn.0041bac0
mov eax, dword [ebp - 0x128]
jmp 0x41bdbc
mov dword [ebp - 4], 0x100
jmp 0x41bd32
lea ecx, [ebp - 0x14]
call fcn.0041bba0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x130]
call fcn.0041bb40
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x14]
call fcn.0041bac0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043d97d
mov esp, ebp
pop ebp
ret 4
Function at 0x41c4d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x41c4d9
xor ecx, ecx
jne 0x41c4d9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41c4fa
mov eax, 0xd
jmp 0x41c526
xor eax, eax
jne 0x41c4e1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x454330]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [0x454014]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41c530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x41c539
xor ecx, ecx
jne 0x41c539
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41c55a
mov eax, 0xd
jmp 0x41c5af
xor eax, eax
jne 0x41c541
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x454330]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41c56b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [0x454014]
mov esp, ebp
pop ebp
ret 8

Function at 0x427d1f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45275c
call fcn.00440b9f
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x427d44
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [0x4545c4]
jmp 0x427d8a
lea ecx, [ebp - 0x10]
call fcn.0040dd50
mov ecx, dword [esi + 0x50]
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.0041ad10
add esp, 0x10
push dword [ebp + 8]
call dword [0x454330]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040dff0
mov eax, esi
call fcn.00440c77
ret 8
Function at 0x4063e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00404f00
add esp, 4
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.004066d0
add esp, 8
push eax
lea ecx, [ebp - 8]
call fcn.00406740
lea ecx, [ebp - 0xc]
call fcn.00406640
mov dword [ebp - 0x10], 0x406780
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.00401600
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.0040e21b
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x406453
lea ecx, [ebp - 8]
call fcn.00405af0
jmp 0x406464
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 6
call fcn.00407792
lea ecx, [ebp - 8]
call fcn.00406640
mov esp, ebp
pop ebp
ret 4

Function at 0x40a44e
Capabilities:
Parse pe header

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

Function at 0x41672d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42aa1c
push 0x42aa14
push str.FlsAlloc
push 0x1e
call fcn.0041655a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416761
push dword [ebp + 8]
mov ecx, esi
call dword [0x427150]
call esi
jmp 0x416767
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4167ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42aa2c
push 0x42aa24
push str.FlsGetValue
push 0x20
call fcn.0041655a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4167e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x427150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41923b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418edd

Function at 0x419246
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041906c
Function at 0x41a8b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a5c0
mov eax, dword [0x435020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004183cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a8f3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41aa4f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426130
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x439700]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041acd7
mov ecx, dword [esi*4 + 0x439700]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41aa48
cmp eax, dword [edi + ecx + 0x24]
jne 0x41aa48
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aa48
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041acd7
add esp, 0x14
test edx, edx
jl 0x41aa48
jg 0x41a9be
test eax, eax
jb 0x41aa48
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41aa48
jl 0x41a9d8
cmp dword [ebp - 0x1008], eax
ja 0x41aa48
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a9f6
test ebx, ebx
je 0x41aa2f
cmp ecx, edi
jae 0x41aa2f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41aa10
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41aa1c
cmp byte [ecx + 1], 0xa
jne 0x41aa1c
inc ecx
jmp 0x41aa1c
movzx eax, al
movsx eax, byte [eax + 0x435970]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a9f6
cmp edx, ebx
jne 0x41a9f6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41aa4d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004096ee
leave
ret
Function at 0x41e64d
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 0x41e6ea
push ebx
push esi
call fcn.0041e616
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.0041d29b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e697
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e6e9
push edi
push eax
call fcn.00417469
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e6b7
call fcn.0041627f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e6e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d29b
add esp, 0x20
test eax, eax
jne 0x41e6d6
push edi
call fcn.0041627f
jmp 0x41e6de
push ebx
call fcn.0041627f
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 0x423174
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x439700]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4231b4
cmp byte [ebx], 0xa
jne 0x4231b4
or byte [eax + edi + 0x28], 4
jmp 0x4231b9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4232b7
mov al, byte [edx]
cmp al, 0x1a
je 0x423299
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4231e8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42320d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423217
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4231ca
jmp 0x4232b7
push 0
lea eax, [ebp - 0xc]
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 0x423294
cmp dword [ebp - 0xc], 0
je 0x423294
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x439700]
test byte [eax + edi + 0x28], 0x48
je 0x42326e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423259
mov byte [esi], dl
jmp 0x42326a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x439700]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4232b7
cmp byte [ebp - 1], 0xa
jne 0x42327d
cmp esi, ebx
jne 0x42327d
mov byte [esi], 0xa
jmp 0x4232b6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041acf5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4232b7
mov byte [esi], 0xd
jmp 0x4232b6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x439700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4232b3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4232b7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4232c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x439700]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423303
cmp word [esi], dx
jne 0x423303
or byte [edi + eax + 0x28], 4
jmp 0x423308
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42345b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42343b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42334a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423380
cmp eax, edx
jae 0x42338c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423322
jmp 0x42345b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423437
cmp dword [ebp - 0x14], 0
je 0x423437
mov eax, dword [ebx*4 + 0x439700]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42340f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4233d8
mov word [esi], cx
jmp 0x42340b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x439700]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x439700]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x439700]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42345b
pop ebx
cmp word [ebp - 4], bx
jne 0x423420
cmp esi, dword [ebp + 0xc]
jne 0x423420
mov word [esi], bx
jmp 0x423458
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041acf5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42345b
push 0xd
jmp 0x423454
mov ecx, dword [ebx*4 + 0x439700]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423452
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42345b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret