joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417065
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x417a7a
test byte [esp + 8], 2
je 0x417a7a
call fcn.00417053
mov dword [eax], 0xd
call fcn.0041705c
mov dword [eax], 5
jmp 0x417a53
xor eax, eax
ret

Function at 0x41840c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x423354]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x423ac8]
je 0x418439
inc eax
cmp eax, 0x12
jb 0x41842a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x423ac8]
jne 0x41856d
mov eax, dword [0x425204]
cmp eax, 1
je 0x418548
cmp eax, edx
jne 0x418469
cmp dword [0x42333c], 1
je 0x418548
cmp ecx, 0xfc
je 0x41856d
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4184a2
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00413140
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004130b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4184e4
lea eax, [ebp - 0x10c]
push eax
call fcn.004130b0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ed50
push edi
call fcn.004133e0
add esp, 0x10
push edi
call fcn.004130b0
push dword [esi + 0x423acc]
mov ebx, eax
call fcn.004130b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00415000
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413140
push edi
push ebx
call fcn.00413150
push 0x41ed30
push ebx
call fcn.00413150
push dword [esi + 0x423acc]
push ebx
call fcn.00413150
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041a98d
add esp, 0x2c
jmp 0x41856d
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x423acc]
push dword [esi]
call fcn.004130b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00414ebd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a98d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425640], ebx
push esi
push edi
jne 0x41aa0d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41aa48
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f62c
push edi
call esi
test eax, eax
mov dword [0x425640], eax
je 0x41aa48
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x425644], eax
call esi
cmp dword [0x425364], 2
mov dword [0x425648], eax
jne 0x41aa0d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x425650], eax
je 0x41aa0d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42564c], eax
mov eax, dword [0x42564c]
test eax, eax
je 0x41aa52
call eax
test eax, eax
je 0x41aa39
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425650]
test eax, eax
je 0x41aa39
test byte [ebp - 8], 1
jne 0x41aa52
cmp dword [0x425370], 4
jb 0x41aa4c
or byte [ebp + 0x12], 0x20
jmp 0x41aa71
xor eax, eax
jmp 0x41aa81
or byte [ebp + 0x12], 4
jmp 0x41aa71
mov eax, dword [0x425644]
test eax, eax
je 0x41aa71
call eax
mov ebx, eax
test ebx, ebx
je 0x41aa71
mov eax, dword [0x425648]
test eax, eax
je 0x41aa71
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425640]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ad48
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415000
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41addd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x425364]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41addd
cmp eax, 1
je 0x41adf5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41addd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41adb2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41add9
xor eax, eax
inc eax
jmp 0x41ae11
cmp esi, ebx
jae 0x41ade1
xor eax, eax
jmp 0x41ae11
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x425364]
jmp 0x41adf7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b2d2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41b33d
push 0x3d
push dword [ebp + 8]
call fcn.0041b6bc
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41b33d
cmp dword [ebp + 8], esi
je 0x41b33d
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x425384]
cmp eax, dword [0x425388]
jne 0x41b323
mov edi, eax
call fcn.0041b271
mov dword [0x425384], eax
cmp eax, ebx
jne 0x41b37c
cmp dword [ebp + 0xc], ebx
je 0x41b345
cmp dword [0x42538c], ebx
je 0x41b345
call fcn.0041a7cb
test eax, eax
je 0x41b37c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41b480
push 4
call fcn.00413091
cmp eax, ebx
pop ecx
mov dword [0x425384], eax
je 0x41b33d
mov dword [eax], ebx
cmp dword [0x42538c], ebx
jne 0x41b37c
push 4
call fcn.00413091
cmp eax, ebx
pop ecx
mov dword [0x42538c], eax
je 0x41b33d
mov dword [eax], ebx
mov ebx, dword [0x425384]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041b224
mov edi, eax
test edi, edi
pop ecx
jl 0x41b3d5
cmp dword [ebx], 0
je 0x41b3d5
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00412be8
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41b3bd
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41b40b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41b3b4
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00415128
test eax, eax
pop ecx
pop ecx
je 0x41b40b
jmp 0x41b406
cmp dword [ebp - 4], 0
jne 0x41b479
test edi, edi
jge 0x41b3e5
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00415128
test eax, eax
pop ecx
pop ecx
je 0x41b33d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x425384], eax
cmp dword [ebp + 0xc], 0
je 0x41b462
push dword [ebp + 8]
call fcn.004130b0
inc eax
inc eax
push eax
call fcn.00413091
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41b462
push dword [ebp + 8]
push esi
call fcn.00413140
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41b45b
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00412be8
pop ecx
cmp dword [ebp - 4], 0
je 0x41b471
push dword [ebp + 8]
call fcn.00412be8
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41b340
push esi
call fcn.00412be8
pop ecx
xor eax, eax
jmp 0x41b340
Function at 0x404e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, dword [edi]
sub esp, 0xffffff9e
nop
mov ebx, dword [ebp + 8]
push esi
sub eax, 0x5638738d
call fcn.004056f0
in eax, dx
inc ebx
add al, 0x83
les eax, [eax*4 + 0x6c7c0]
mov dh, 0
add ah, ah
inc ebx
cmp al, 0x79
add byte [eax], al
add byte [ebp + ecx - 0x7c], dh
call fcn.00404e00
mov eax, dword [ebx + 4]
test eax, eax
jne 0x404e2c
test al, ch
into
invalid
fld qword [ebx + 0x1b]
push eax
call fcn.004056f0
mov ecx, dword [ebx + 0x1c]
push ecx
sbb al, 0x51
call 0x1205730
mov eax, dword [ebx]
scasb al, byte es:[edi]
les ecx, [eax]
test ecx, edi
je 0x404e89
mov edx, dword [eax + 0x18]
push edx
call 0x43404910
mov esi, eax
test esi, esi
je 0x404e44
push esi
call 0xcc40a2d0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0xf
je 0x404e7f
inc esi
xchg edx, eax
or dword [ecx - 0x97af3be], 0x74
invalid
je 0x404e89
test esi, esi
je 0x404e89
push ss
call fcn.0040a340
mov esp, dword [eax + 0x187b8b30]
push edi
mov eax, dword [esi + 0x61]
mov dword [eax], 0x4f0033
call fcn.00404930
cmp eax, ebx
jne 0x404ef2
push 0
push edi
call 0x3f9e00
mov eax, dword [edi - 0x23]
xor ebx, ebx
or eax, eax
je 0x404eb9
push eax
call 0xac40a2d0
and byte [edi + 0x46], dl
mov ecx, dword [edi]
mov dword [edi - 8], edx
mov edx, dword [edi + 0x13]
mov dword [ebp - 4], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x3a], edx
aam 0x46
xchg ebp, eax
mov ecx, ecx
je 0x404ee0
cmp eax, edx
jbe 0x404ee0
in al, dx
push ds
mov ebx, esi
fisttp word [eax - 0x7d]
clc
invalid
cmp eax, 0xfffffff0
jae 0x404efd
mov ecx, dword [edi + eax*4 + 0x14]
test ecx, ecx
xor edi, dword [edi]
jne 0x404ef7
jg 0x404f36
cld
jbe 0x404ef7
mov dword [ebp + 0x3b], eax
and al, 0x74
xchg dword [edx - 0x15], ecx
or byte [ebx + 0xe89d14f], cl
mov ecx, dword [edi - 0x2f]
mov dword [esi], ecx
sub edi, dword [esi + 0x72c94a14]
add al, 0x2b
scasb al, byte es:[edi]
jmp 0x404f54
ret
pop edi
ja 0x404fb2
mov esp, ebp
pop ebp
ret 4
Function at 0x4063d1
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 0x4063f2
jl 0x4063e9
test edi, edi
jne 0x4063f2
xor eax, eax
xor edx, edx
jmp 0x4064b3
cmp dword [ebx + 0x38], 0
je 0x406407
push eax
push edi
push dword [ebp + 8]
call fcn.004064b9
jmp 0x4064b3
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40644e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40644e
cmp eax, edi
jb 0x406428
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409750
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 0x406454
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4064a8
mov ecx, ebx
call fcn.00405c39
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406493
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040f97e
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 0x4064a8
jmp 0x406466
test edx, edx
je 0x4064a8
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040f97e
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 0x408eba
Capabilities:
Parse pe header

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

Function at 0x41566d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429a88
push 0x429a80
push str.FlsAlloc
push 0x1e
call fcn.004154da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4156a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42613c]
call esi
jmp 0x4156a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4156eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429a98
push 0x429a90
push str.FlsGetValue
push 0x20
call fcn.004154da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415722
push dword [ebp + 8]
mov ecx, esi
call dword [0x42613c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4187d5
Capabilities:
Read file on windows

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

Function at 0x4187e0
Capabilities:
Read file on windows

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

Function at 0x418bda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409250
mov eax, dword [0x434010]
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.00416c02
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418c1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418d78
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425090
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 + 0x438948]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419daa
mov ecx, dword [esi*4 + 0x438948]
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 0x418d71
cmp eax, dword [edi + ecx + 0x24]
jne 0x418d71
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 0x418d71
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419daa
add esp, 0x14
test edx, edx
jl 0x418d71
jg 0x418ce7
test eax, eax
jb 0x418d71
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418d71
jl 0x418d01
cmp dword [ebp - 0x1008], eax
ja 0x418d71
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418d1f
test ebx, ebx
je 0x418d58
cmp ecx, edi
jae 0x418d58
mov al, byte [ecx]
cmp al, 0xd
jne 0x418d39
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418d45
cmp byte [ecx + 1], 0xa
jne 0x418d45
inc ecx
jmp 0x418d45
movzx eax, al
movsx eax, byte [eax + 0x434298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418d1f
cmp edx, ebx
jne 0x418d1f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418d76
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004086c4
leave
ret
Function at 0x419248
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 + 0x438948]
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 0x419288
cmp byte [ebx], 0xa
jne 0x419288
or byte [eax + edi + 0x28], 4
jmp 0x41928d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41938b
mov al, byte [edx]
cmp al, 0x1a
je 0x41936d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4192bc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4192e1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4192eb
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 0x41929e
jmp 0x41938b
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 0x419368
cmp dword [ebp - 0xc], 0
je 0x419368
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x438948]
test byte [eax + edi + 0x28], 0x48
je 0x419342
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41932d
mov byte [esi], dl
jmp 0x41933e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438948]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41938b
cmp byte [ebp - 1], 0xa
jne 0x419351
cmp esi, ebx
jne 0x419351
mov byte [esi], 0xa
jmp 0x41938a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419dc8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41938b
mov byte [esi], 0xd
jmp 0x41938a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x438948]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419387
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41938b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419394
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 + 0x438948]
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 0x4193d7
cmp word [esi], dx
jne 0x4193d7
or byte [edi + eax + 0x28], 4
jmp 0x4193dc
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 0x41952f
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 0x41950f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41941e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419454
cmp eax, edx
jae 0x419460
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 0x4193f6
jmp 0x41952f
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 0x41950b
cmp dword [ebp - 0x14], 0
je 0x41950b
mov eax, dword [ebx*4 + 0x438948]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4194e3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4194ac
mov word [esi], cx
jmp 0x4194df
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x438948]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x438948]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x438948]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41952f
pop ebx
cmp word [ebp - 4], bx
jne 0x4194f4
cmp esi, dword [ebp + 0xc]
jne 0x4194f4
mov word [esi], bx
jmp 0x41952c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419dc8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41952f
push 0xd
jmp 0x419528
mov ecx, dword [ebx*4 + 0x438948]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419526
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41952f
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 0x41df1d
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 0x41dfba
push ebx
push esi
call fcn.0041dee6
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.0041cb6b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41df67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dfb9
push edi
push eax
call fcn.00415ca0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41df87
call fcn.004151ff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dfb8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cb6b
add esp, 0x20
test eax, eax
jne 0x41dfa6
push edi
call fcn.004151ff
jmp 0x41dfae
push ebx
call fcn.004151ff
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 0x424e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x416000
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x416006
or ebp, 0xffffffff
xor ebx, ebx
pop esi
lea edi, [esi - 0x15006]
push edi
add word [edi + 0x1429c], 0
add esi, 0x1b3
jmp 0x41602e
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416028
mov eax, 1
add ebx, ebx
jne 0x41604b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x416040
jne 0x41605c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416040
xor ecx, ecx
sub eax, 3
jb 0x4160ca
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4160e6
mov ebp, eax
add ebx, ebx
jne 0x41607b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4160ac
inc ecx
add ebx, ebx
jne 0x416098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x41608d
jne 0x4160a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41608d
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x4160d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4160bc
jmp 0x41602e
mov eax, ebp
jmp 0x416070
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4160d0
add edi, ecx
jmp 0x41602e
pop esi
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x13c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4160f6
cmp byte [edi], 1
jne 0x4160f6
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 0x4160fb
pop edi
mov eax, dword [edi]
or eax, eax
je 0x416166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13064]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416123
push edx
mov ecx, edi
jns 0x416153
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x13068]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x416140
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x416197
cmp al, 0xef
ja 0x41618a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41616c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x416179
popal
jmp 0x40172b