joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b6a5
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x42b6bf
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x42b6d6
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x42b72e
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0042f5f4
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x42b72e
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42b72e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42b72e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x42b728
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x42b72a
xor bl, bl
mov al, bl
jmp 0x42b730
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x42d616
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004173e0
mov eax, dword [0x449080]
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.00429cfc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d658
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d7cf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00437cf0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44ab98]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042da6e
mov ecx, dword [esi*4 + 0x44ab98]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42d7c8
cmp eax, dword [edi + ecx + 0x24]
jne 0x42d7c8
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x42d7c8
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042da6e
add esp, 0x14
cmp edx, esi
jl 0x42d7c8
jg 0x42d723
cmp eax, esi
jb 0x42d7c8
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x42d7c8
jl 0x42d745
cmp dword [ebp - 0x1008], eax
ja 0x42d7c8
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x42d76a
cmp ebx, esi
je 0x42d7af
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x42d7af
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d790
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d79c
cmp byte [ecx + 1], 0xa
jne 0x42d79c
inc ecx
jmp 0x42d79c
movzx eax, al
movsx eax, byte [eax + 0x449a08]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d776
cmp edx, ebx
jne 0x42d776
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x42d7cd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004173a4
leave
ret
Function at 0x42edb6
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 0x42ee53
push ebx
push esi
call fcn.0042ed7f
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.00427dd6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ee00
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42ee52
push edi
push eax
call fcn.00428a50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42ee20
call fcn.00427d00
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42ee51
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00427dd6
add esp, 0x20
test eax, eax
jne 0x42ee3f
push edi
call fcn.00427d00
jmp 0x42ee47
push ebx
call fcn.00427d00
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 0x4315ed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00427b28
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 0x43165c
cmp esi, dword [ebp - 4]
je 0x431657
cmp dword [ebp + 0xc], 0
je 0x431657
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x431634
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00431142
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43165e
xor eax, eax
inc eax
jmp 0x43165e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4316c9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x449080]
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.00427b28
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.00427b28
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 0x431740
cmp word [ecx], dx
je 0x431740
mov eax, dword [0x440c4c]
push edi
dec eax
push eax
push 0x440b38
call fcn.00431662
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4317b3
cmp word [eax], dx
je 0x4317b3
mov eax, dword [edi]
test eax, eax
je 0x431764
cmp word [eax], dx
je 0x431764
lea eax, [ebp - 0x10]
push eax
call fcn.00431048
jmp 0x43176d
lea eax, [ebp - 0x10]
push eax
call fcn.004310e3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4317dd
mov eax, dword [0x440b34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x440828
call fcn.00431662
add esp, 0xc
test al, al
je 0x4317dd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4317a8
cmp word [eax], di
je 0x4317a8
lea eax, [ebp - 0x10]
push eax
call fcn.00431048
pop ecx
jmp 0x4317df
lea eax, [ebp - 0x10]
push eax
call fcn.004310e3
jmp 0x4317a5
mov eax, dword [edi]
test eax, eax
je 0x4317ca
cmp word [eax], dx
je 0x4317ca
lea eax, [ebp - 0x10]
push eax
call fcn.00430ffd
pop ecx
jmp 0x4317dd
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 0x4318a8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004314e7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4318a8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4318a8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4318a8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x431835
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042bdec
test ebx, ebx
je 0x4318a3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042bdec
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4318a8
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 0x4318a8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00435de5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4318aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004173a4
leave
ret
Function at 0x434a04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44ab98]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x434a46
cmp byte [ebx], 0xa
jne 0x434a46
or byte [edi + eax + 0x28], 4
jmp 0x434a4b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x434b4e
mov cl, byte [eax]
cmp cl, 0x1a
je 0x434b29
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x434a7a
mov eax, dword [ebp - 8]
jmp 0x434a9a
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x434ab6
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x434a94
add eax, 2
mov cl, 0xa
jmp 0x434a97
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x434a5c
jmp 0x434b4e
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 0x434b24
cmp dword [ebp - 0x10], 0
je 0x434b24
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x44ab98]
test byte [eax + edi + 0x28], 0x48
je 0x434b03
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x434af3
mov byte [esi], 0xa
jmp 0x434b4d
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x44ab98]
mov byte [eax + edi + 0x2a], cl
jmp 0x434b4d
cmp byte [ebp - 1], 0xa
jne 0x434b0d
cmp esi, ebx
je 0x434aee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042da8c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x434b4e
mov byte [esi], 0xd
jmp 0x434b4d
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x44ab98]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x434b4b
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x434b4e
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434b57
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x44ab98]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x434b9b
push 0xa
pop esi
cmp word [ebx], si
jne 0x434b9b
or byte [eax + edi + 0x28], 4
jmp 0x434ba0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x434d0b
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x434ce3
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x434bed
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x434c17
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x434c36
push 0xa
pop ebx
cmp word [edx], bx
jne 0x434c04
push ebx
add eax, 4
pop edx
jmp 0x434c0c
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x434bb2
jmp 0x434d0b
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 0x434cde
cmp dword [ebp - 0x14], 0
je 0x434cde
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x44ab98]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x434cba
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x434c82
mov word [esi], ax
jmp 0x434d08
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x44ab98]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x44ab98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44ab98]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x434d08
cmp word [ebp - 4], ax
jne 0x434cc4
cmp esi, ebx
je 0x434c7a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042da8c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x434d0b
push 0xd
pop eax
jmp 0x434c7a
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x44ab98]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x434d05
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x434d0b
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x436425
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.004363a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x436594
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x436594
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x436549
jg 0x436481
test eax, eax
je 0x43653f
push 1
push 0x1000
call fcn.00427ca0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4364a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x436536
push 0x8000
push ebx
call fcn.00425216
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4364cd
jg 0x4364c8
cmp ecx, 0x1000
jb 0x4364cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042b0f3
add esp, 0x10
cmp eax, 0xffffffff
je 0x436512
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 0x4364c8
jl 0x4364f9
test ecx, ecx
jne 0x4364ba
push dword [ebp - 0xc]
push ebx
call fcn.00425216
push esi
call fcn.00427d00
add esp, 0xc
xor ebx, ebx
jmp 0x4365a2
cmp byte [edi + 0x24], 0
je 0x436529
cmp dword [edi + 0x20], 5
jne 0x436529
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x436534
mov ebx, dword [edi + 0x18]
jmp 0x436536
xor ebx, ebx
push esi
call fcn.00427d00
pop ecx
jmp 0x4365a2
test ecx, ecx
jg 0x43650b
jl 0x436549
test eax, eax
jae 0x43650b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042da8c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436569
cmp byte [edi + 0x1c], 0
je 0x43650b
jmp 0x43659a
push ebx
call fcn.0042f5f4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43650b
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 0x4365a2
cmp byte [edi + 0x1c], 0
je 0x43659f
mov ebx, dword [edi + 0x18]
jmp 0x4365a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042da8c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x437b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x437b9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x437b9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a6f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x42a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541
Function at 0x4027da
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push 0
push 0x400000
call fcn.004015ac
mov dword [0x414040], eax
cmp dword [0x414014], 0
jne 0x403e75
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_exit]
push esi
mov esi, ecx
call dword [sym.imp.ole32.dll_CoReleaseServerProcess]
test eax, eax
jne 0x401692
mov dword [esi + 4], 1
pop esi
ret
call 0x40171c
push 0x14
push 0x402908
call fcn.00402010
and dword [ebp - 0x20], 0
call sub.MSVCR110_CLR0400.dll___crtGetShowWindowMode
movzx ebx, ax
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
xor edi, edi
mov esi, 0x414148
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x403dd8
xor esi, esi
inc esi
cmp dword [0x41414c], esi
je 0x403dea
cmp dword [0x41414c], 0
jne 0x402931
mov dword [0x41414c], esi
push 0x402904
push 0x4028f0
call fcn.004a5000
pop ecx
pop ecx
test eax, eax
jne 0x403df7
cmp dword [0x41414c], esi
jne 0x402879
push 0x4028ec
push 0x4028cc
call sub.MSVCR110_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x41414c], 2
test edi, edi
jne 0x402886
xor eax, eax
mov ecx, 0x414148
xchg dword [ecx], eax
cmp dword [0x414158], 0
jne 0x403e08
mov eax, dword [sym.imp.MSVCR110_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402924
cmp cl, 0x22
je 0x403e2c
movzx eax, cl
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x403e3d
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4028a0
test cl, cl
je 0x40293c
test edi, edi
je 0x40293c
jmp 0x4028a7
mov dword [0x414268], esi
jmp 0x402856
mov al, byte [esi]
test al, al
je 0x401657
cmp al, 0x20
ja 0x401657
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40293c
cmp eax, edx
jne 0x40280b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40281e
push 0x1f
call sub.MSVCR110_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402856
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403e90
push 0x414158
call fcn.0040f0a8
pop ecx
test eax, eax
je 0x402893
push 0
push 2
push 0
call dword [0x414158]
jmp 0x402893
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
jmp 0x4028b0
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4028c3
cmp dword [0x414268], 0
jne 0x403e89
call dword [sym.imp.MSVCR110_CLR0400.dll__cexit]
mov eax, dword [0x414040]
mov dword [ebp - 4], 0xfffffffe
call fcn.004017d6
ret
Function at 0x180fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181b520]
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.01806e52
and dword [ebp - 0x14], 0
cmp dword [0x185d558], 0
mov dword [ebp - 0x18], eax
jne 0x180fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x180fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x180fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x185d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x185d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x185d560], eax
call edi
push eax
call esi
mov dword [0x185d568], eax
test eax, eax
je 0x180fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x185d564], eax
mov eax, dword [0x185d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x180fc78
cmp dword [0x185d568], ecx
je 0x180fc78
push eax
call esi
push dword [0x185d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x180fc78
test ebx, ebx
je 0x180fc78
call edi
test eax, eax
je 0x180fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x180fc6f
test byte [ebp - 8], 1
jne 0x180fc78
or dword [ebp + 0x10], 0x200000
jmp 0x180fcab
mov eax, dword [0x185d55c]
cmp eax, dword [ebp - 0x18]
je 0x180fcab
push eax
call esi
test eax, eax
je 0x180fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x180fcab
mov eax, dword [0x185d560]
cmp eax, dword [ebp - 0x18]
je 0x180fcab
push eax
call esi
test eax, eax
je 0x180fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x185d558]
call esi
test eax, eax
je 0x180fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x180fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.018013cb
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0x408945
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
and edi, edi
call fcn.0040895a
xor dword [ebx], ecx
inc ebx
cmp ebx, eax
jne fcn.00408945
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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