joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402eb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a1f0]
jne 0x402eba
repz ret
jmp fcn.00405b0e

Function at 0x40c5ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406963
and dword [ebp - 0x14], 0
cmp dword [0x41c3e8], 0
mov dword [ebp - 0x18], eax
jne 0x40c65f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c707
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c707
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41c3e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41c3ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c3f0], eax
call edi
push eax
call esi
mov dword [0x41c3f8], eax
test eax, eax
je 0x40c65f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c3f4], eax
mov eax, dword [0x41c3f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c6b8
cmp dword [0x41c3f8], ecx
je 0x40c6b8
push eax
call esi
push dword [0x41c3f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c6b8
test ebx, ebx
je 0x40c6b8
call edi
test eax, eax
je 0x40c6af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c6af
test byte [ebp - 8], 1
jne 0x40c6b8
or dword [ebp + 0x10], 0x200000
jmp 0x40c6eb
mov eax, dword [0x41c3ec]
cmp eax, dword [ebp - 0x18]
je 0x40c6eb
push eax
call esi
test eax, eax
je 0x40c6eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c6eb
mov eax, dword [0x41c3f0]
cmp eax, dword [ebp - 0x18]
je 0x40c6eb
push eax
call esi
test eax, eax
je 0x40c6eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41c3e8]
call esi
test eax, eax
je 0x40c707
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c709
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402eb0
leave
ret

Function at 0x40d6e7
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41a1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [0x41c840]
cmp dword [ebp + 8], esi
jle 0x40d73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.0040d6c3
xor byte [edi + esi], al
push 0
call dword [sym.imp.USER32.dll_SwitchDesktop]
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
inc esi
cmp esi, dword [ebp + 8]
jl 0x40d709
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402eb0
leave
ret 4
Function at 0x41535c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
jmp 0x41541b
cmp dword [esi + 0x10], 0x1000
jne 0x415407
test byte [esi + 0x15], 1
jne 0x415407
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4153b8
cmp ebp, 2
je 0x4153b8
cmp ebp, 0x10
je 0x4153b8
cmp ebp, 0x20
jne 0x4153d4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4153d4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4153e5
mov eax, dword [esi]
add eax, ebx
call fcn.00415354
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4153d8
cmp byte [esp + 4], 0
je 0x415407
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x41538d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x553aa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe2000]
push edi
jmp 0x553aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x553ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553ab0
mov eax, 1
add ebx, ebx
jne 0x553ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x553ae4
jne 0x553b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553b03
dec eax
add ebx, ebx
jne 0x553af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x553ac8
add ebx, ebx
jne 0x553aff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x553b55
xor ecx, ecx
sub eax, 3
jb 0x553b1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x553b8a
sar eax, 1
mov ebp, eax
jmp 0x553b26
add ebx, ebx
jne 0x553b26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553af4
inc ecx
add ebx, ebx
jne 0x553b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x553af4
add ebx, ebx
jne 0x553b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x553b36
jne 0x553b52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x553b36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x553b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x553b66
jmp 0x553ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x553b74
add edi, ecx
jmp 0x553ab6
pop esi
mov edi, esi
mov ecx, 0x2e50
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x553b92
cmp byte [edi], 0x1e
jne 0x553b92
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 0x553b97
lea edi, [esi + 0x150000]
mov eax, dword [edi]
or eax, eax
je 0x553c0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ae8b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ae9b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x553bc4
mov ecx, edi
jns 0x553bf3
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 + 0x1ae9bc]
or eax, eax
je 0x553c09
mov dword [ebx], eax
add ebx, 4
jmp 0x553be1
call dword [esi + 0x1ae9cc]
mov ebp, dword [esi + 0x1ae9c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x553c43
sub esp, 0xffffff80
jmp 0x46331d
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
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
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x40abd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x47761c], eax
pop edi
pop esi
pop ebp
ret

Function at 0x40ac70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x40ace2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x40ad5e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403b60
push 0x14d
lea edx, [ebp - 0x1c]
push edx
call fcn.0040b250
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x40ad48
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40ad5e
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40acd9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d16
mov esp, ebp
pop ebp
ret
Function at 0x411361
Capabilities:
Parse pe header

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

Function at 0x41dedc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323c8
push 0x4323c0
push str.FlsAlloc
push 0x1e
call fcn.0041dd49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df10
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
jmp 0x41df16
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41df5a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323d8
push 0x4323d0
push str.FlsGetValue
push 0x20
call fcn.0041dd49
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df91
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x420a78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042071a

Function at 0x420a83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004208a9
Function at 0x421cbd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411700
mov eax, dword [0x43d100]
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.0041f471
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421cff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421e5b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042cf00
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 + 0x43f7e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004220e3
mov ecx, dword [esi*4 + 0x43f7e0]
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 0x421e54
cmp eax, dword [edi + ecx + 0x24]
jne 0x421e54
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 0x421e54
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004220e3
add esp, 0x14
test edx, edx
jl 0x421e54
jg 0x421dca
test eax, eax
jb 0x421e54
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421e54
jl 0x421de4
cmp dword [ebp - 0x1008], eax
ja 0x421e54
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421e02
test ebx, ebx
je 0x421e3b
cmp ecx, edi
jae 0x421e3b
mov al, byte [ecx]
cmp al, 0xd
jne 0x421e1c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421e28
cmp byte [ecx + 1], 0xa
jne 0x421e28
inc ecx
jmp 0x421e28
movzx eax, al
movsx eax, byte [eax + 0x43da40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421e02
cmp edx, ebx
jne 0x421e02
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421e59
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410d16
leave
ret
Function at 0x42541d
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 0x4254ba
push ebx
push esi
call fcn.004253e6
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.0042406b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425467
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4254b9
push edi
push eax
call fcn.0041e50f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425487
call fcn.0041d70b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4254b8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042406b
add esp, 0x20
test eax, eax
jne 0x4254a6
push edi
call fcn.0041d70b
jmp 0x4254ae
push ebx
call fcn.0041d70b
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 0x42a006
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 + 0x43f7e0]
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 0x42a046
cmp byte [ebx], 0xa
jne 0x42a046
or byte [eax + edi + 0x28], 4
jmp 0x42a04b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42a149
mov al, byte [edx]
cmp al, 0x1a
je 0x42a12b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42a07a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42a09f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42a0a9
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 0x42a05c
jmp 0x42a149
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 0x42a126
cmp dword [ebp - 0xc], 0
je 0x42a126
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43f7e0]
test byte [eax + edi + 0x28], 0x48
je 0x42a100
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42a0eb
mov byte [esi], dl
jmp 0x42a0fc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43f7e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42a149
cmp byte [ebp - 1], 0xa
jne 0x42a10f
cmp esi, ebx
jne 0x42a10f
mov byte [esi], 0xa
jmp 0x42a148
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422101
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42a149
mov byte [esi], 0xd
jmp 0x42a148
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43f7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a145
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a149
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a152
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 + 0x43f7e0]
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 0x42a195
cmp word [esi], dx
jne 0x42a195
or byte [edi + eax + 0x28], 4
jmp 0x42a19a
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 0x42a2ed
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 0x42a2cd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42a1dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42a212
cmp eax, edx
jae 0x42a21e
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 0x42a1b4
jmp 0x42a2ed
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 0x42a2c9
cmp dword [ebp - 0x14], 0
je 0x42a2c9
mov eax, dword [ebx*4 + 0x43f7e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42a2a1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42a26a
mov word [esi], cx
jmp 0x42a29d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43f7e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43f7e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43f7e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42a2ed
pop ebx
cmp word [ebp - 4], bx
jne 0x42a2b2
cmp esi, dword [ebp + 0xc]
jne 0x42a2b2
mov word [esi], bx
jmp 0x42a2ea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00422101
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42a2ed
push 0xd
jmp 0x42a2e6
mov ecx, dword [ebx*4 + 0x43f7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42a2e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42a2ed
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 0x42cd00
Capabilities:
Parse pe header

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