joyce8/EMBER2024-capa huggingface dataset:
Function at 0xfff430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8b6000]
push edi
or ebp, 0xffffffff
jmp 0xfff452
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xfff459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfff448
mov eax, 1
add ebx, ebx
jne 0xfff46b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xfff47c
jne 0xfff49b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfff49b
dec eax
add ebx, ebx
jne 0xfff488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xfff460
add ebx, ebx
jne 0xfff497
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xfff4ed
xor ecx, ecx
sub eax, 3
jb 0xfff4b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xfff522
sar eax, 1
mov ebp, eax
jmp 0xfff4be
add ebx, ebx
jne 0xfff4be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfff48c
inc ecx
add ebx, ebx
jne 0xfff4cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfff48c
add ebx, ebx
jne 0xfff4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xfff4ce
jne 0xfff4ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xfff4ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xfff50c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xfff4fe
jmp 0xfff44e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xfff50c
add edi, ecx
jmp 0xfff44e
pop esi
mov edi, esi
mov ecx, 0x274cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xfff52a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xfff52f
lea edi, [esi + 0xbfa000]
mov eax, dword [edi]
or eax, eax
je 0xfff597
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc05a54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc05bbc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xfff555
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc05bc0]
or eax, eax
je 0xfff591
mov dword [ebx], eax
add ebx, 4
jmp 0xfff572
call dword [esi + 0xc05bd0]
mov ebp, dword [esi + 0xc05bc4]
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 0xfff5cb
sub esp, 0xffffff80
jmp 0x933a24
Function at 0x40ea00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40ea20
jl 0x40ea17
cmp dword [ebp + 0xc], 0
ja 0x40ea20
xor eax, eax
xor edx, edx
jmp 0x40eb57
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40ea42
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040eb60
jmp 0x40eb57
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0040a4a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40eab1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00406170
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040cf50
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040c6f0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040ce60
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40eb48
mov ecx, dword [ebp - 8]
call fcn.0040b360
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40eb21
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00415a15
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40eb1f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40eb57
jmp 0x40eacd
cmp dword [ebp - 4], 0
jbe 0x40eb48
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00415a15
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x410a6b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4346f0
push 0x4346e8
push str.FlsAlloc
push 0x1e
call fcn.0041eb1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ece2
push dword [ebp + 8]
mov ecx, esi
call dword [0x430158]
call esi
jmp 0x41ece8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ed2c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x434700
push 0x4346f8
push str.FlsGetValue
push 0x20
call fcn.0041eb1b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ed63
push dword [ebp + 8]
mov ecx, esi
call dword [0x430158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42040d
Capabilities:
Read file on windows

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

Function at 0x420807
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00410e80
mov eax, dword [0x43f064]
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.0041f2e1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420849
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4209a5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042e8f0
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 + 0x440f80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004217e4
mov ecx, dword [esi*4 + 0x440f80]
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 0x42099e
cmp eax, dword [edi + ecx + 0x24]
jne 0x42099e
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 0x42099e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004217e4
add esp, 0x14
test edx, edx
jl 0x42099e
jg 0x420914
test eax, eax
jb 0x42099e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42099e
jl 0x42092e
cmp dword [ebp - 0x1008], eax
ja 0x42099e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42094c
test ebx, ebx
je 0x420985
cmp ecx, edi
jae 0x420985
mov al, byte [ecx]
cmp al, 0xd
jne 0x420966
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420972
cmp byte [ecx + 1], 0xa
jne 0x420972
inc ecx
jmp 0x420972
movzx eax, al
movsx eax, byte [eax + 0x43f2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42094c
cmp edx, ebx
jne 0x42094c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4209a3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004102f4
leave
ret
Function at 0x420c9c
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 + 0x440f80]
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 0x420cdc
cmp byte [ebx], 0xa
jne 0x420cdc
or byte [eax + edi + 0x28], 4
jmp 0x420ce1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420ddf
mov al, byte [edx]
cmp al, 0x1a
je 0x420dc1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420d10
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420d35
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420d3f
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 0x420cf2
jmp 0x420ddf
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 0x420dbc
cmp dword [ebp - 0xc], 0
je 0x420dbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x440f80]
test byte [eax + edi + 0x28], 0x48
je 0x420d96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420d81
mov byte [esi], dl
jmp 0x420d92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x440f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420ddf
cmp byte [ebp - 1], 0xa
jne 0x420da5
cmp esi, ebx
jne 0x420da5
mov byte [esi], 0xa
jmp 0x420dde
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421802
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420ddf
mov byte [esi], 0xd
jmp 0x420dde
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x440f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420ddb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420ddf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420de8
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 + 0x440f80]
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 0x420e2b
cmp word [esi], dx
jne 0x420e2b
or byte [edi + eax + 0x28], 4
jmp 0x420e30
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 0x420f69
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 0x420f49
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420e72
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420ea8
cmp eax, edx
jae 0x420eb4
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 0x420e4a
jmp 0x420f69
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 0x420f45
cmp dword [ebp - 0x14], 0
je 0x420f45
mov eax, dword [ebx*4 + 0x440f80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420f1d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x420f63
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x440f80]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x440f80]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x440f80]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x420f66
pop ebx
cmp word [ebp - 4], bx
jne 0x420f2e
cmp esi, dword [ebp + 0xc]
jne 0x420f2e
mov word [esi], bx
jmp 0x420f66
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421802
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420f69
push 0xd
jmp 0x420f62
mov ecx, dword [ebx*4 + 0x440f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420f60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420f69
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 0x42674a
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 0x4267e7
push ebx
push esi
call fcn.00426713
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.00425501
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426794
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4267e6
push edi
push eax
call fcn.004219e1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4267b4
call fcn.0041dc04
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4267e5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425501
add esp, 0x20
test eax, eax
jne 0x4267d3
push edi
call fcn.0041dc04
jmp 0x4267db
push ebx
call fcn.0041dc04
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 0x42e245
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]
push dword [ebp + 0xc]
push ebx
call fcn.0042e1c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42e3bd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42e3bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42e36c
jg 0x42e29e
test eax, eax
je 0x42e362
push 1
push 0x1000
call fcn.0041e81d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42e2c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42e359
push 0x8000
push ebx
call fcn.0041b314
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42e2f0
jg 0x42e2eb
cmp ecx, 0x1000
jb 0x42e2f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042007e
add esp, 0x10
cmp eax, 0xffffffff
je 0x42e335
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 0x42e2eb
jl 0x42e31c
test ecx, ecx
jne 0x42e2dd
push dword [ebp - 0xc]
push ebx
call fcn.0041b314
push esi
call fcn.0041dc04
add esp, 0xc
xor edi, edi
jmp 0x42e3ce
cmp byte [edi + 0x24], 0
je 0x42e34c
cmp dword [edi + 0x20], 5
jne 0x42e34c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42e357
mov edi, dword [edi + 0x18]
jmp 0x42e359
xor edi, edi
push esi
call fcn.0041dc04
pop ecx
jmp 0x42e3ce
test ecx, ecx
jg 0x42e32e
jl 0x42e36c
test eax, eax
jae 0x42e32e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421802
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42e38f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42e32e
jmp 0x42e3c6
push ebx
call fcn.004271b9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42e32e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42e3ce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42e3cb
mov edi, dword [edi + 0x18]
jmp 0x42e3ce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00421802
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e7d0
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x41d004]
jne 0x40100a
repz ret
jmp fcn.00401493

Function at 0x408d24
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.0040581f
and dword [ebp - 4], 0
cmp dword [0x41f284], 0
mov ebx, eax
jne 0x408dd5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408e86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408e86
push eax
call fcn.004057ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f284], eax
call esi
push eax
call fcn.004057ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f288], eax
call esi
push eax
call fcn.004057ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41f28c], eax
call esi
push eax
call fcn.004057ad
pop ecx
mov dword [0x41f294], eax
test eax, eax
je 0x408dd5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057ad
pop ecx
mov dword [0x41f290], eax
mov eax, dword [0x41f290]
cmp eax, ebx
je 0x408e2d
cmp dword [0x41f294], ebx
je 0x408e2d
push eax
call fcn.00405828
push dword [0x41f294]
mov esi, eax
call fcn.00405828
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408e2d
test edi, edi
je 0x408e2d
call esi
test eax, eax
je 0x408e24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408e24
test byte [ebp - 0xc], 1
jne 0x408e2d
or dword [ebp + 0x10], 0x200000
jmp 0x408e66
mov eax, dword [0x41f288]
cmp eax, ebx
je 0x408e66
push eax
call fcn.00405828
pop ecx
test eax, eax
je 0x408e66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408e66
mov eax, dword [0x41f28c]
cmp eax, ebx
je 0x408e66
push eax
call fcn.00405828
pop ecx
test eax, eax
je 0x408e66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f284]
call fcn.00405828
pop ecx
test eax, eax
je 0x408e86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408e88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp esi, 0x19f
jne 0x419a9e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
xor edx, edx
test esi, esi
jle 0x419abf
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.00419a78
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, esi
jl 0x419aa4
cmp esi, 0x2d
jne 0x419ad5
or dword [0x4a868c], 0xffffffff
mov dword [0x4a8688], 0xa62e7790
leave
ret
Function at 0x4132a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413351
test eax, edx
je 0x413354
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4132d1
push edx
mov edx, eax
mov eax, esp
call fcn.0040750c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4132e7
push eax
lea eax, [esp + 8]
call fcn.0040750c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4132f6
movzx eax, word [eax]
sub eax, ecx
jmp 0x41331d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x413337
add ecx, 4
js 0x41330e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413334
push eax
mov eax, ecx
mov edx, 2
call fcn.00406598
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41331b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41331d
xor eax, eax
ret
test eax, eax
je 0x413364
test edx, edx
jne 0x4132b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4148bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040737c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4148da
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4148fb
cmp ebx, 3
je 0x4148fb
cmp ebx, 0x7b
je 0x4148fb
mov eax, esi
call fcn.0041487c
test al, al
jne 0x4148ff
xor eax, eax
jmp 0x414901
mov al, 1
pop esi
pop ebx
ret

Function at 0x414904
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040737c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41491d
test al, 0x10
jne 0x414921
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x418d54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x418d8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040742c
jmp 0x418d96
mov eax, ebx
mov edx, esi
call fcn.004072f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418da0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x418dc2
movzx eax, word [esp]
jmp 0x418dc4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret