joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40731d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
add esp, 4
sub edi, 0x1378a
sub edi, 0x8b4e
pop edi
push edx
add edx, 0x13f60
pop edx
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
cmp edx, dword [ebp - 0xce0]
je 0x407362
mov eax, dword [ebp - 0x51c]
cmp dword [eax + 0x30], 0
jne 0x40712d
mov dword [ebp - 0x2fc], 0

Function at 0x412454
Capabilities:
Encode data using xor

Disassembly:
inc edi
add al, byte [edx]
pop esp
mov ebx, 0x2020270
push 0xf04a8f8b
add dword [ecx], eax
mov esp, 0x2020276
push 0xf04c978b
add dword [ecx], eax
mov edx, 0x2020266
push 0xf04e878b
add dword [ecx], eax
mov ebx, 0x202026e
push 0xf0508f8b
add dword [ecx], eax
mov esp, 0x202026e
push 0xf052978b
add dword [ecx], eax
mov edx, 0x2020230
push 0xf054878b
add dword [ecx], eax
mov ebx, 0x2020266
push 0xf0568f8b
add dword [ecx], eax
mov esp, 0x202026e
push 0xf058978b
add dword [ecx], eax
mov edx, 0x202026e
push 0xf05a878b
add dword [ecx], eax
xor eax, 0x8f8b68cb
pop esp
lock add dword [ecx], eax
push ebx
xor ebx, 0xffffffab
fiadd word [edx]
add al, byte [ebx + 0x321bae3]
add al, byte [ebx + 0x231c7f3]
add al, byte [ebx + 0x2c945e3]
add bl, byte [ebx + 0x58]
mov edx, 0x83020321
invalid
add al, byte [edx]
pop ebx
pop eax
pop ecx
test esi, eax
push es
sub eax, 0xffffff8d
xor al, 3
add al, byte [ebx + 0x2df29e8]
sub eax, 0x29
fild word [edx]
add al, byte [ebx + 0x304d1e8]
add ah, byte [eax - 0x38]
xchg dword [esi + 0x500101f9], edx
enter 0xffffffffffff9787, 0xfffffffffffffff9
add dword [ecx], eax
jbe 0x4124d6
xchg dword [eax + 0x530101f9], ebx
enter 0xffffffffffff9987, 0xfffffffffffffff9
add dword [ecx], eax
ja 0x4124e4
xchg dword [edx + 0x670101f9], ebx
enter 0xffffffffffff9b87, 0xfffffffffffffff9
add dword [ecx], eax
je 0x4124f2
xchg dword [ecx + edi*8 - 0x3784feff], ebx
xchg dword [ebp + 0x460101f9], ebx
enter 0xffffffffffff9e87, 0xfffffffffffffff9
add dword [ecx], eax
enter 0xffffffffffff9f87, 0xfffffffffffffff9
add dword [ecx], eax
push 0xf9a087c8
add dword [ecx], eax
arpl ax, cx
xchg dword [ecx + 0x770101f9], esp
enter 0xffffffffffffa287, 0xfffffffffffffff9
add dword [ecx], eax
outsb dx, byte [esi]
enter 0xffffffffffffa387, 0xfffffffffffffff9
add dword [ecx], eax
jbe 0x41252a
xchg dword [ecx + edi*8 - 0x37b1feff], esp
xchg dword [ebp + 0x710101f9], esp
enter 0xffffffffffffa687, 0xfffffffffffffff9
add dword [ecx], eax
enter 0xffffffffffffa787, 0xfffffffffffffff9
add dword [ecx], eax
arpl ax, cx
xchg dword [eax + 0x6e0101f9], ebp
enter 0xffffffffffffa987, 0xfffffffffffffff9
add dword [ecx], eax
enter 0xffffffffffffaa87, 0xfffffffffffffff9
add dword [ecx], eax
add dl, byte [edx - 0x16]
or al, 2
add al, byte [edx]
add cl, byte [ecx + 0x37]
xor al, 0x4f
cmp bh, byte [esi]
dec ecx
inc eax
dec edi
test esi, eax
push es
or edx, 0x2d
xchg byte [ebx], al
add al, byte [ebx + 0x240d6ea]
add bl, byte [edx + 0x52]
push ebx
test esi, eax
push es
sub edx, 0x2e
int3
Function at 0x426951
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4269be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42699a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4269a1
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work66_s_src_burnenginemsuengine.cpp
call fcn.004038ba
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0043fb09
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042dd1f
leave
ret 4

Function at 0x4299b4
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44a534
mov dword [ebp - 4], esi
test eax, eax
je 0x4299d3
mov edx, dword [eax]
jmp 0x4299e0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4299de
mov edx, dword [ecx]
jmp 0x4299e0
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4299e9
mov edi, dword [ecx]
test eax, eax
je 0x4299fb
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429a0a
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call fcn.0040563d
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00443c72
test eax, eax
je 0x429a88
mov eax, dword [ebp - 4]
test al, 1
je 0x429a88
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429a60
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429a67
mov esi, 0x80004005
push esi
push 0x538
push str.c:_agent_work66_s_src_burnengine_apply.cpp
call fcn.004038ba
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0043fb09
add esp, 0xc
jmp 0x429b06
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push fcn.0042988d
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429b06
cmp dword [ebx + 0x20], esi
je 0x429ac6
mov esi, 0x80070642
push esi
push 0x542
push str.c:_agent_work66_s_src_burnengine_apply.cpp
call fcn.004038ba
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429add
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429ae4
mov esi, 0x80004005
push esi
push 0x546
push str.c:_agent_work66_s_src_burnengine_apply.cpp
call fcn.004038ba
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0043fb09
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x17615f5b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3f2a2744
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x710c55
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x7109ec
sub ecx, 0xa27bd24d
call fcn.00710c9f
sub ebx, ebx
sub ebx, ebx
sub ecx, 0x1bfa8779
xor dword [eax], esi
add ecx, 0x72be842c
add ecx, 0x75432afe
add ecx, 0xd442ee94
inc eax
sub ecx, 1
cmp eax, edx
jne fcn.00710c55
mov ebx, 0x86d5e3a3
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x7d4a24d7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x55811b79
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404c98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x404d18
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x404d17
push ebx
mov ebx, 0x47e1e8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x425548
mov byte [edi + esi], al
call fcn.0040dc9e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x404cba
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00404815
pop edi
pop ebp
ret 0x14

Function at 0x407cba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x407cdb
jl 0x407cd2
test edi, edi
jne 0x407cdb
xor eax, eax
xor edx, edx
jmp 0x407d9c
cmp dword [ebx + 0x38], 0
je 0x407cf0
push eax
push edi
push dword [ebp + 8]
call fcn.00407da2
jmp 0x407d9c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407d37
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407d37
cmp eax, edi
jb 0x407d11
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409520
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407d3d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407d91
mov ecx, ebx
call fcn.00407554
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407d7c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410ee3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407d91
jmp 0x407d4f
test edx, edx
je 0x407d91
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410ee3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40907c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4090bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4090bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4090bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4090bb
cmp dword [ecx + 0x74], 0xe
jbe 0x4090bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4172cd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429630
push 0x429628
push str.FlsAlloc
push 0x1e
call fcn.0041713a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417301
push dword [ebp + 8]
mov ecx, esi
call dword [0x425178]
call esi
jmp 0x417307
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41734b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429640
push 0x429638
push str.FlsGetValue
push 0x20
call fcn.0041713a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417382
push dword [ebp + 8]
mov ecx, esi
call dword [0x425178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a778
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a5e9

Function at 0x41ab72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004094d0
mov eax, dword [0x47c600]
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.00418735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41abb4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ad10
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424300
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 + 0x47eb90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b911
mov ecx, dword [esi*4 + 0x47eb90]
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 0x41ad09
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ad09
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 0x41ad09
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b911
add esp, 0x14
test edx, edx
jl 0x41ad09
jg 0x41ac7f
test eax, eax
jb 0x41ad09
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ad09
jl 0x41ac99
cmp dword [ebp - 0x1008], eax
ja 0x41ad09
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41acb7
test ebx, ebx
je 0x41acf0
cmp ecx, edi
jae 0x41acf0
mov al, byte [ecx]
cmp al, 0xd
jne 0x41acd1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41acdd
cmp byte [ecx + 1], 0xa
jne 0x41acdd
inc ecx
jmp 0x41acdd
movzx eax, al
movsx eax, byte [eax + 0x47c8c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41acb7
cmp edx, ebx
jne 0x41acb7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ad0e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004088c2
leave
ret
Function at 0x41adaf
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 + 0x47eb90]
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 0x41adef
cmp byte [ebx], 0xa
jne 0x41adef
or byte [eax + edi + 0x28], 4
jmp 0x41adf4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41aef2
mov al, byte [edx]
cmp al, 0x1a
je 0x41aed4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ae23
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ae48
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ae52
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 0x41ae05
jmp 0x41aef2
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 0x41aecf
cmp dword [ebp - 0xc], 0
je 0x41aecf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47eb90]
test byte [eax + edi + 0x28], 0x48
je 0x41aea9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ae94
mov byte [esi], dl
jmp 0x41aea5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47eb90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41aef2
cmp byte [ebp - 1], 0xa
jne 0x41aeb8
cmp esi, ebx
jne 0x41aeb8
mov byte [esi], 0xa
jmp 0x41aef1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b92f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41aef2
mov byte [esi], 0xd
jmp 0x41aef1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47eb90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41aeee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41aef2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aefb
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 + 0x47eb90]
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 0x41af3e
cmp word [esi], dx
jne 0x41af3e
or byte [edi + eax + 0x28], 4
jmp 0x41af43
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 0x41b096
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 0x41b076
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41af85
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41afbb
cmp eax, edx
jae 0x41afc7
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 0x41af5d
jmp 0x41b096
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 0x41b072
cmp dword [ebp - 0x14], 0
je 0x41b072
mov eax, dword [ebx*4 + 0x47eb90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b04a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b013
mov word [esi], cx
jmp 0x41b046
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47eb90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47eb90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47eb90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b096
pop ebx
cmp word [ebp - 4], bx
jne 0x41b05b
cmp esi, dword [ebp + 0xc]
jne 0x41b05b
mov word [esi], bx
jmp 0x41b093
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b92f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b096
push 0xd
jmp 0x41b08f
mov ecx, dword [ebx*4 + 0x47eb90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b08d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b096
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 0x41cd31
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 0x41cdce
push ebx
push esi
call fcn.0041ccfa
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.0041badb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cd7b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cdcd
push edi
push eax
call fcn.00417900
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cd9b
call fcn.00416969
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cdcc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041badb
add esp, 0x20
test eax, eax
jne 0x41cdba
push edi
call fcn.00416969
jmp 0x41cdc2
push ebx
call fcn.00416969
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 0x424100
Capabilities:
Parse pe header

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