joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d3067
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x680bc8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5d30a7
cmp byte [ebx], 0xa
jne 0x5d30a7
or byte [edi + eax + 0x28], 4
jmp 0x5d30ac
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5d31ab
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5d318e
inc eax
cmp dl, 0xd
je 0x5d30d8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5d30fe
cmp eax, ecx
jae 0x5d310c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x5d30c0
jmp 0x5d31ab
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5d3189
cmp dword [ebp - 0x10], 0
je 0x5d3189
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x680bc8]
test byte [eax + edi + 0x28], 0x48
je 0x5d3163
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5d314e
mov byte [esi], dl
jmp 0x5d315f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x680bc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5d31ab
cmp byte [ebp - 1], 0xa
jne 0x5d3172
cmp esi, ebx
jne 0x5d3172
mov byte [esi], 0xa
jmp 0x5d31aa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005d0faa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5d31ab
mov byte [esi], 0xd
jmp 0x5d31aa
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x680bc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5d31a8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5d31ab
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5d31b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x680bc8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5d31fa
cmp word [ebx], dx
jne 0x5d31fa
or byte [eax + edi + 0x28], 4
jmp 0x5d31ff
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5d3362
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5d3342
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5d3240
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5d3276
cmp eax, edx
jae 0x5d3284
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5d321b
jmp 0x5d3362
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5d333d
cmp dword [ebp - 0x18], 0
je 0x5d333d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x680bc8]
test byte [eax + edi + 0x28], 0x48
je 0x5d3313
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5d32d7
mov word [esi], cx
jmp 0x5d330e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x680bc8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x680bc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x680bc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5d3362
pop eax
cmp word [ebp - 4], ax
jne 0x5d3323
cmp esi, ebx
jne 0x5d3323
mov word [esi], ax
jmp 0x5d335f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005d0faa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5d3362
push 0xd
pop eax
jmp 0x5d331e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x680bc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5d335c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5d3362
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5d4e3d
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 0x5d4eda
push ebx
push esi
call fcn.005d4e06
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.005d4d9a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5d4e87
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5d4ed9
push edi
push eax
call fcn.005ce827
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5d4ea7
call fcn.005cd93d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5d4ed8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005d4d9a
add esp, 0x20
test eax, eax
jne 0x5d4ec6
push edi
call fcn.005cd93d
jmp 0x5d4ece
push ebx
call fcn.005cd93d
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 0x5d4edd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5d4eee
pop esi
ret
push ebx
push edi
push esi
call fcn.005d4e06
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005ce827
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5d4f16
push ebx
push esi
push edi
call fcn.005aeb10
add esp, 0xc
push 0
call fcn.005cd93d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5d52e6
Capabilities:
Set environment variable

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

Function at 0x5d7335
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005cc8d6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d73a4
cmp esi, dword [ebp - 4]
je 0x5d739f
cmp dword [ebp + 0xc], 0
je 0x5d739f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5d737c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005d6e87
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5d73a6
xor eax, eax
inc eax
jmp 0x5d73a6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5d740b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005cc8d6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005cc8d6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5d7482
cmp word [ecx], dx
je 0x5d7482
mov eax, dword [0x638c44]
push edi
dec eax
push eax
push 0x638b30
call fcn.005d73aa
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5d74f5
cmp word [eax], dx
je 0x5d74f5
mov eax, dword [edi]
test eax, eax
je 0x5d74a6
cmp word [eax], dx
je 0x5d74a6
lea eax, [ebp - 0x10]
push eax
call fcn.005d6d8d
jmp 0x5d74af
lea eax, [ebp - 0x10]
push eax
call fcn.005d6e28
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5d751f
mov eax, dword [0x638b2c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x638820
call fcn.005d73aa
add esp, 0xc
test al, al
je 0x5d751f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5d74ea
cmp word [eax], di
je 0x5d74ea
lea eax, [ebp - 0x10]
push eax
call fcn.005d6d8d
pop ecx
jmp 0x5d7521
lea eax, [ebp - 0x10]
push eax
call fcn.005d6e28
jmp 0x5d74e7
mov eax, dword [edi]
test eax, eax
je 0x5d750c
cmp word [eax], dx
je 0x5d750c
lea eax, [ebp - 0x10]
push eax
call fcn.005d6d42
pop ecx
jmp 0x5d751f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5d75ea
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005d722f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5d75ea
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5d75ea
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5d75ea
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5d7577
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005cffd0
test ebx, ebx
je 0x5d75e5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005cffd0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d75ea
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d75ea
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005c0cd8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5d75ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058a7e9
leave
ret
Function at 0x5dd7bd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5dd800
call fcn.005c03ed
mov dword [eax], 0xf
call fcn.005c0400
mov dword [eax], 0xd
call fcn.005b1b0f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a7e9
leave
ret
test eax, eax
jne 0x5dd807
inc eax
jmp 0x5dd7f4
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5dd7f2
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5dd7f4
Function at 0x5dde44
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005dddc0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5ddfb3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5ddfb3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5ddf68
jg 0x5ddea0
test eax, eax
je 0x5ddf5e
push 1
push 0x1000
call fcn.005ccc7d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5ddec3
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5ddf55
push 0x8000
push ebx
call fcn.005c65dc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5ddeec
jg 0x5ddee7
cmp ecx, 0x1000
jb 0x5ddeec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005cd721
add esp, 0x10
cmp eax, 0xffffffff
je 0x5ddf31
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5ddee7
jl 0x5ddf18
test ecx, ecx
jne 0x5dded9
push dword [ebp - 0xc]
push ebx
call fcn.005c65dc
push esi
call fcn.005cd93d
add esp, 0xc
xor ebx, ebx
jmp 0x5ddfc1
cmp byte [edi + 0x24], 0
je 0x5ddf48
cmp dword [edi + 0x20], 5
jne 0x5ddf48
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5ddf53
mov ebx, dword [edi + 0x18]
jmp 0x5ddf55
xor ebx, ebx
push esi
call fcn.005cd93d
pop ecx
jmp 0x5ddfc1
test ecx, ecx
jg 0x5ddf2a
jl 0x5ddf68
test eax, eax
jae 0x5ddf2a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005d0faa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5ddf88
cmp byte [edi + 0x1c], 0
je 0x5ddf2a
jmp 0x5ddfb9
push ebx
call fcn.005c57be
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5ddf2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5ddfc1
cmp byte [edi + 0x1c], 0
je 0x5ddfbe
mov ebx, dword [edi + 0x18]
jmp 0x5ddfc1
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005d0faa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ea007
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x5ea04c
call fcn.00455f9c
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5ea049
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5ea093
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x5ea06f
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x603454]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x5ea090
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x603454]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x408ca0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e4
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 0x10], eax

Function at 0x409310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4098b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412004]
jne 0x4098bf
repz ret
jmp fcn.00409de5

Function at 0x409cfd
Capabilities:
Accept command line arguments

Disassembly:
push 0x58
push 0x4113b0
call fcn.0040b3d0
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0xfffffffffffffffe
pop edi
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x409cc5
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x409cc5
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x409cc5
cmp dword [eax + 0x400074], 0xe
jbe 0x409cc5
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x409cc8
mov dword [ebp - 0x1c], esi
xor ebx, ebx
inc ebx
push ebx
call fcn.0040b39e
pop ecx
test eax, eax
jne 0x409cde
push 0x1c
call fcn.00409c35
pop ecx
call fcn.0040b211
test eax, eax
jne 0x409cef
push 0x10
call fcn.00409c35
pop ecx
call fcn.0040adb5
mov dword [ebp - 4], ebx
call fcn.0040ab61
test eax, eax
invalid
jge 0x409d08
push 0x1b
call fcn.0040a194
pop ecx
call sub.KERNEL32.dll_GetCommandLineW
mov dword [0x41553c], eax
call fcn.0040ab04
mov dword [0x414704], eax
call fcn.0040aa56
test eax, eax
jge 0x409d2d
push 8
call fcn.0040a194
pop ecx
call fcn.0040a827
test eax, eax
jge 0x409d3e
push 9
call fcn.0040a194
pop ecx
push ebx
call fcn.0040a253
pop ecx
cmp eax, esi
je 0x409d50
push eax
call fcn.0040a194
pop ecx
call fcn.0040a7e1
test byte [ebp - 0x3c], bl
je 0x409d60
movzx ecx, word [ebp - 0x38]
jmp 0x409d63
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call main
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x409d7e
push eax
call fcn.0040a404
call fcn.0040a430
mov dword [ebp - 4], edi
jmp 0x409dbd
mov eax, dword [ebp - 0x20]
jmp 0x409dd5
call fcn.0040b415
ret
call fcn.0040b5bc
jmp 0x409c5e

Function at 0x40a620
Capabilities:
Write file on windows

Disassembly:
push dword [edi + ebx + 0x6a]
add byte [ebp - 0x72af07bb], cl
xor al, 0xfd
adc al, 0x20
inc ecx
add bh, bh
call fcn.0040c230
Function at 0x40ae10
Capabilities:
Get thread local storage value

Disassembly:
add byte [ecx], al
call esi
test eax, eax
je 0x40ae3a
mov eax, dword [0x412118]
cmp eax, 0xffffffff
je 0x40ae3a
push eax
push dword [0x41211c]
call esi
call eax
test eax, eax
je 0x40ae3a
mov eax, dword [eax + 0x1f8]
jmp 0x40ae61
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40ae55
push esi
call fcn.0040a164
pop ecx
test eax, eax
je 0x40ae6d
push str.EncodePointer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ae6d
push dword [ebp + 8]
call eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x40ae8a
Capabilities:
Get thread local storage value

Disassembly:
xchg esp, eax
add byte [ecx], al
call esi
test eax, eax
je 0x40aeb5
mov eax, dword [0x412118]
cmp eax, 0xffffffff
je 0x40aeb5
push eax
push dword [0x41211c]
call esi
call eax
test eax, eax
je 0x40aeb5
mov eax, dword [eax + 0x1fc]
jmp 0x40aedc
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40aed0
push esi
call fcn.0040a164
pop ecx
test eax, eax
je 0x40aee8
push str.DecodePointer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aee8
push dword [ebp + 8]
call eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x40b2a2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
inc ecx
add bh, al
add eax, 0x414f8c
out dx, al
scasb al, byte es:[edi]
inc eax
add byte [ecx + 0x414f9435], cl
add byte [ebx + 0x414f98], ah
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41211c], eax
cmp eax, 0xffffffff
je 0x40b399
push dword [0x414f90]
push eax
call esi
test eax, eax
je 0x40b399
call fcn.0040a44e
push dword [0x414f8c]
call fcn.0040ae01
push dword [0x414f90]
mov dword [0x414f8c], eax
call fcn.0040ae01
push dword [0x414f94]
mov dword [0x414f90], eax
call fcn.0040ae01
push dword [0x414f98]
mov dword [0x414f94], eax
call fcn.0040ae01
add esp, 0x10
mov dword [0x414f98], eax
call fcn.0040b6a4
test eax, eax
je 0x40b394
push 0x40b0e2
push dword [0x414f8c]
call fcn.0040ae7c
pop ecx
call eax
mov dword [0x412118], eax
cmp eax, 0xffffffff
je 0x40b394
push 0x214
push 1
call fcn.0040c4b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40b394
push esi
push dword [0x412118]
push dword [0x414f94]
call fcn.0040ae7c
pop ecx
call eax
test eax, eax
je 0x40b394
push 0
push esi
call fcn.0040af68
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x40b39b
call fcn.0040af2b
xor eax, eax
pop edi
pop esi
ret
Function at 0x40b91b
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [ecx - 4]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x328], 0xc0000417
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x31c], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x40b96b
test ebx, ebx
jne 0x40b96b
push 2
call fcn.0040b652
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004098b5
leave
ret

Function at 0x40bf93
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ae73
and dword [ebp - 4], 0
cmp dword [0x415128], 0
mov ebx, eax
jne 0x40c044
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c0f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c0f5
push eax
call fcn.0040ae01
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415128], eax
call esi
push eax
call fcn.0040ae01
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41512c], eax
call esi
push eax
call fcn.0040ae01
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x415130], eax
call esi
push eax
call fcn.0040ae01
pop ecx
mov dword [0x415138], eax
test eax, eax
je 0x40c044
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ae01
pop ecx
mov dword [0x415134], eax
mov eax, dword [0x415134]
cmp eax, ebx
je 0x40c09c
cmp dword [0x415138], ebx
je 0x40c09c
push eax
call fcn.0040ae7c
push dword [0x415138]
mov esi, eax
call fcn.0040ae7c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c09c
test edi, edi
je 0x40c09c
call esi
test eax, eax
je 0x40c093
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c093
test byte [ebp - 0xc], 1
jne 0x40c09c
or dword [ebp + 0x10], 0x200000
jmp 0x40c0d5
mov eax, dword [0x41512c]
cmp eax, ebx
je 0x40c0d5
push eax
call fcn.0040ae7c
pop ecx
test eax, eax