joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f37
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x422550
call fcn.0040dcb0
xor esi, esi
cmp dword [0x4274a8], esi
jne 0x408df7
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x408e0a
mov dword [ebp - 0x1c], esi
jmp 0x408e40
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x408e05
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x408e05
cmp dword [eax + 0x400074], 0xe
jbe 0x408e05
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f80c
test eax, eax
jne 0x408e51
push 0x1c
call fcn.0040692c
pop ecx
call fcn.0040d831
test eax, eax
jne 0x408e62
push 0x10
call fcn.0040692c
pop ecx
call fcn.0040dae6
mov dword [ebp - 4], esi
call fcn.0040692c
test eax, eax
jns 0x408e7b
push 0x1b
call fcn.0040692c
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4274a4], eax
call fcn.0040692c
mov dword [0x42565c], eax
call fcn.0040692c
test eax, eax
jns 0x408ea1
push 8
call fcn.0040692c
pop ecx
call fcn.0040f1ff
test eax, eax
jns 0x408eb2
push 9
call fcn.0040692c
pop ecx
push 1
call fcn.0040692c
pop ecx
cmp eax, esi
je 0x408ec5
push eax
call fcn.0040692c
pop ecx
mov eax, dword [0x425634]
mov dword [0x425638], eax
push eax
push dword [0x42562c]
push dword [0x425628]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x408ef2
push eax
call fcn.0040692c
call fcn.00408bb3
jmp 0x408f27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040dcf5
ret
call fcn.0040692c
jmp 0x408dd6

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x20079d0f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 6
add eax, 6
pop ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
jle 0x20079dc3
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
sub dword [ebp - 8], ecx
lea ebx, [eax + 0x120]
lea esi, [ecx + 0x128]
mov eax, dword [esi]
test eax, eax
je 0x20079daf
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + esi]
je 0x20079daf
cmp dword [ebp + 0x20], 0
mov edi, ebx
je 0x20079d94
cmp dword [ebp - 4], 0
jne 0x20079d94
push 1
push 0xbca0
call fcn.200cf9f8
test eax, eax
mov dword [ebp - 0x10], eax
je 0x20079dc3
push eax
call fcn.200cf9da
test eax, eax
mov dword [ebp - 4], eax
je 0x20079d94
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
call fcn.20079b7d
mov eax, esi
push 0x18
sub eax, ebx
pop ecx
add eax, 0xfffffff8
mov dx, word [eax + edi]
xor dx, 0xff
mov word [edi], dx
inc edi
inc edi
dec ecx
jne 0x20079d9e
mov eax, dword [ebp + 0x1c]
inc dword [ebp - 0xc]
add eax, 6
add esi, 0x30
add ebx, 0x30
cmp dword [ebp - 0xc], eax
jl 0x20079d4c
push dword [ebp + 0x1c]
call fcn.20079b97
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.20079e08
cmp dword [ebp - 4], 0
mov esi, eax
je 0x20079dff
push dword [ebp + 0x1c]
push dword [ebp - 4]
push dword [ebp + 0x18]
call fcn.20079b7d
lea eax, [ebp - 0x10]
push eax
call fcn.200cfa16
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x2007d8da
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
neg ebx
sbb ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
and ebx, 0xfffffffe
inc ebx
push edi
cmp word [esi + 0x10], 0
mov dword [ebp + 0x10], ebx
je 0x2007d8fd
push ebx
jmp 0x2007d8ff
push 0
mov edi, dword [ebp + 8]
push edi
call fcn.200cc34f
mov ax, word [esi + 0x10]
mov word [edi + 2], ax
cmp word [esi + 6], 0
je 0x2007d91a
push ebx
jmp 0x2007d91c
push 0
lea eax, [edi + 4]
push eax
call fcn.200cc34f
mov ax, word [esi + 6]
mov word [edi + 6], ax
cmp word [esi + 8], 0
je 0x2007d937
push ebx
jmp 0x2007d939
push 0
lea eax, [edi + 8]
push eax
call fcn.200cc34f
mov ax, word [esi + 8]
mov word [edi + 0xa], ax
mov cl, byte [esi + 5]
test cl, cl
je 0x2007d96d
mov al, byte [esi + 2]
movzx edx, al
shr edx, 7
push edx
mov dl, byte [esi + 3]
and al, 0x7f
push edx
push eax
push ecx
call fcn.20085875
mov dword [ebp - 8], eax
jmp 0x2007d977
and word [ebp - 8], 0
and word [ebp - 6], 0
push dword [ebp - 8]
lea eax, [edi + 0xc]
push eax
call fcn.200cc34f
push dword [ebp - 6]
lea eax, [edi + 0xe]
push eax
call fcn.200cc34f
mov al, byte [esi + 4]
lea ebx, [edi + 0x18]
mov byte [edi + 0x15], al
mov al, byte [esi + 0xd]
mov byte [edi + 0x10], al
mov al, byte [esi + 0xe]
mov byte [edi + 0x11], al
mov al, byte [esi + 0xf]
mov byte [edi + 0x12], al
mov al, byte [esi + 0x12]
mov byte [edi + 0x13], al
mov al, byte [esi + 0x13]
mov byte [edi + 0x14], al
cmp word [esi + 0x14], 0
je 0x2007d9c2
push dword [ebp + 0x10]
jmp 0x2007d9c4
push 0
push ebx
call fcn.200cc34f
mov ax, word [esi + 0x14]
mov dword [ebp + 8], 0x30
mov word [ebx + 2], ax
mov al, byte [esi + 0x19]
mov byte [ebx + 4], al
mov al, byte [esi + 0x18]
mov byte [ebx + 5], al
mov al, byte [esi + 0x16]
mov byte [ebx + 6], al
mov al, byte [esi + 0x17]
mov byte [ebx + 7], al
mov ax, word [esi + 0x1a]
mov word [ebx + 8], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0xa], ax
mov al, byte [esi + 0x1e]
mov byte [ebx + 0xc], al
mov al, byte [esi + 0x1f]
mov byte [ebx + 0xd], al
mov al, byte [esi + 0x20]
mov byte [ebx + 0xe], al
lea ebx, [esi + 0x38]
lea esi, [edi + 0x32]
xor edi, edi
cmp word [ebx - 0xa], di
je 0x2007da26
push dword [ebp + 0x10]
jmp 0x2007da27
push edi
push esi
call fcn.200cc34f
mov ax, word [ebx - 0xa]
mov word [esi + 2], ax
cmp word [ebx], di
je 0x2007da3f
push dword [ebp + 0x10]
jmp 0x2007da40
push edi
lea eax, [esi + 4]
push eax
call fcn.200cc34f
mov ax, word [ebx]
add ebx, 0x14
mov word [esi + 6], ax
mov al, byte [ebx - 0x23]
mov byte [esi - 2], al
mov al, byte [ebx - 0x1f]
mov byte [esi - 1], al
mov al, byte [ebx - 0x22]
mov byte [esi + 8], al
mov al, byte [ebx - 0x21]
mov byte [esi + 9], al
mov eax, dword [ebx - 0x1c]
mov dword [esi + 0xa], eax
mov eax, dword [ebx - 0x18]
mov dword [esi + 0xe], eax
mov al, byte [ebx - 0x12]
mov byte [esi + 0x12], al
mov al, byte [ebx - 0x11]
mov byte [esi + 0x13], al
mov al, byte [ebx - 0x20]
mov byte [esi + 0x14], al
add esi, 0x18
dec dword [ebp + 8]
jne 0x2007da19
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x200e02e0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp word [edi + 6], 0
jg 0x200e0300
mov eax, dword [esp + 0xc]
mov dword [eax], 4
mov ecx, dword [edi]
mov dword [eax + 4], ecx
jmp 0x200e0395
push ebx
push esi
mov esi, dword [esp + 0x10]
push 1
pop ebx
push esi
call fcn.200e5056
mov dword [esi + 0x1c], 4
movsx eax, word [edi + 4]
movzx ecx, word [edi + 6]
shl eax, 0x10
or eax, ecx
mov dword [esi + 0x20], eax
cmp word [edi + 0xa], 0
jle 0x200e034d
push esi
call fcn.200e5056
mov dword [esi + 0x1c], 4
push 2
movsx eax, word [edi + 8]
movzx ecx, word [edi + 0xa]
shl eax, 0x10
or eax, ecx
pop ebx
mov dword [esi + 0x20], eax
push esi
call fcn.200e5056
or ebx, 0x80000000
push 0
push esi
mov dword [esi + 0x1c], 4
mov dword [esi + 0x20], ebx
call fcn.200f21bd
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esi + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x10]
add dword [esi + 0x18], 0xfffffff8
mov eax, dword [esi + 0x18]
mov ecx, dword [ecx]
mov edx, dword [ecx + eax]
mov dword [esi + 0x1c], edx
mov eax, dword [ecx + eax + 4]
mov dword [esi + 0x20], eax
pop esi
pop ebx
pop edi
ret 0xc

Function at 0x200e21fa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov al, byte [ebx]
cmp al, 0xff
jae 0x200e220c
movzx eax, al
jmp 0x200e2215
lea eax, [ebx + 1]
push eax
call fcn.200cfa2e
mov esi, dword [esp + 0x18]
movsx edi, ax
mov al, byte [esi]
cmp al, 0xff
jae 0x200e2227
movzx eax, al
jmp 0x200e2230
lea eax, [esi + 1]
push eax
call fcn.200cfa2e
movsx eax, ax
cmp edi, eax
jne 0x200e2263
test edi, edi
jle 0x200e225a
mov eax, dword [esp + 0x10]
movzx ecx, byte [ebx + 1]
movzx edx, byte [esi + 1]
dec edi
inc ebx
mov ecx, dword [eax + ecx*4 + 0x14]
inc esi
xor ecx, dword [eax + edx*4 + 0x14]
test cl, cl
jne 0x200e2263
test edi, edi
jg 0x200e223f
push 1
pop eax
pop edi
pop esi
pop ebx
ret 0xc
xor eax, eax
jmp 0x200e225d

Function at 0x201451ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [0x6908af08]
mov ebx, ecx
and ebx, 3
push ebx
shr ecx, 2
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
or ecx, ecx
je 0x20145217
nop
lodsd eax, dword [esi]
not eax
xor dword [edi], eax
add edi, 4
dec ecx
jne 0x2014520c
pop ecx
or ecx, ecx
je 0x20145225
lodsb al, byte [esi]
not al
xor byte [edi], al
inc edi
dec ecx
jne 0x2014521c
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x201936ac
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x201936de
push esi
call fcn.2019506c
mov eax, dword [esi + 0x40]
test eax, eax
je 0x201936d7
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret 4
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x2019375f
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x20193749
mov eax, dword [esi + 8]
test eax, eax
je 0x201936ff
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
test eax, eax
je 0x20193743
cmp eax, 2
je 0x20193749
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x201936f5
cmp eax, 3
je 0x20193722
cmp eax, 1
jne 0x201936f5
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x201936f5
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x201936f5
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.2019378c
pop esi
ret 4
cmp eax, 0xcc
je 0x2019377c
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
push esi
call fcn.2019378c
pop esi
ret 4
Function at 0x201e3c28
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x201e3c41
test al, 0x40
jne 0x201e3c41
test al, 2
je 0x201e3c46
or al, 0x20
mov dword [esi + 0xc], eax
or eax, 0xffffffff
pop esi
ret
or al, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
jne 0x201e3cdc
push esi
call fcn.201d37c2
pop ecx
push dword [esi + 0x18]
push dword [esi + 8]
push dword [esi + 0x10]
call fcn.201def41
add esp, 0xc
mov dword [esi + 4], eax
test eax, eax
je 0x201e3ced
cmp eax, 0xffffffff
je 0x201e3ced
mov edx, dword [esi + 0xc]
test dl, 0x82
jne 0x201e3cb1
mov ecx, dword [esi + 0x10]
push edi
cmp ecx, 0xffffffff
je 0x201e3ce6
mov edi, ecx
sar edi, 5
and ecx, 0x1f
mov edi, dword [edi*4 + 0x78037760]
lea ecx, [ecx + ecx*8]
lea edi, [edi + ecx*4]
mov cl, byte [edi + 4]
pop edi
and cl, 0x82
cmp cl, 0x82
jne 0x201e3cb1
or dh, 0x20
mov dword [esi + 0xc], edx
cmp dword [esi + 0x18], 0x200
jne 0x201e3cce
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x201e3cce
test ch, 4
jne 0x201e3cce
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec eax
mov dword [esi + 4], eax
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
pop esi
ret
mov eax, dword [esi + 8]
mov dword [esi], eax
jmp 0x201e3c5c
mov edi, 0x780394a8
jmp 0x201e3c9f
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
jmp 0x201e3c41

Function at 0x201e55a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov ecx, edi
test edi, edi
mov dword [ebp - 4], edi
mov dword [ebp + 8], ecx
jne 0x201e55c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
je 0x201e5614
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x14], eax
test word [esi + 0xc], 0x10c
je 0x201e5622
mov eax, dword [esi + 4]
test eax, eax
je 0x201e5622
cmp ecx, eax
mov edi, ecx
jb 0x201e55f0
mov edi, eax
push edi
push dword [esi]
push ebx
call fcn.201c4719
sub dword [ebp + 8], edi
sub dword [esi + 4], edi
add dword [esi], edi
add esp, 0xc
add ebx, edi
mov edi, dword [ebp - 4]
cmp dword [ebp + 8], 0
jne 0x201e561d
mov eax, dword [ebp + 0x10]
jmp 0x201e55c3
mov dword [ebp + 0x14], 0x1000
jmp 0x201e55d9
mov ecx, dword [ebp + 8]
jmp 0x201e55d9
cmp ecx, dword [ebp + 0x14]
jb 0x201e5655
cmp dword [ebp + 0x14], 0
mov eax, ecx
je 0x201e5638
xor edx, edx
div dword [ebp + 0x14]
mov eax, ecx
sub eax, edx
push eax
push ebx
push dword [esi + 0x10]
call fcn.201def41
add esp, 0xc
test eax, eax
je 0x201e566f
cmp eax, 0xffffffff
je 0x201e5682
sub dword [ebp + 8], eax
add ebx, eax
jmp 0x201e5609
push esi
call fcn.201e3c28
cmp eax, 0xffffffff
pop ecx
je 0x201e5673
mov byte [ebx], al
mov eax, dword [esi + 0x18]
inc ebx
dec dword [ebp + 8]
mov dword [ebp + 0x14], eax
jmp 0x201e5609
or dword [esi + 0xc], 0x10
mov eax, edi
xor edx, edx
sub eax, dword [ebp + 8]
div dword [ebp + 0xc]
jmp 0x201e55c3
or dword [esi + 0xc], 0x20
jmp 0x201e5673
Function at 0x201e6e5c
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x201e6e75
test al, 0x40
jne 0x201e6e75
test al, 2
je 0x201e6e7c
or al, 0x20
mov dword [esi + 0xc], eax
mov eax, 0xffff
pop esi
ret
or al, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
jne 0x201e6f1f
push esi
call fcn.201d37c2
pop ecx
push dword [esi + 0x18]
push dword [esi + 8]
push dword [esi + 0x10]
call fcn.201def41
add esp, 0xc
mov dword [esi + 4], eax
test eax, eax
je 0x201e6f30
cmp eax, 1
je 0x201e6f30
cmp eax, 0xffffffff
je 0x201e6f30
mov edx, dword [esi + 0xc]
test dl, 0x82
jne 0x201e6ef0
mov ecx, dword [esi + 0x10]
push edi
cmp ecx, 0xffffffff
je 0x201e6f29
mov edi, ecx
sar edi, 5
and ecx, 0x1f
mov edi, dword [edi*4 + 0x78037760]
lea ecx, [ecx + ecx*8]
lea edi, [edi + ecx*4]
mov cl, byte [edi + 4]
pop edi
and cl, 0x82
cmp cl, 0x82
jne 0x201e6ef0
or dh, 0x20
mov dword [esi + 0xc], edx
cmp dword [esi + 0x18], 0x200
jne 0x201e6f0d
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x201e6f0d
test ch, 4
jne 0x201e6f0d
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add eax, 0xfffffffe
mov dword [esi + 4], eax
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
pop esi
ret
mov eax, dword [esi + 8]
mov dword [esi], eax
jmp 0x201e6e92
mov edi, 0x780394a8
jmp 0x201e6ede
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
jmp 0x201e6e75

Function at 0x201ee26c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
test eax, eax
jle 0x201ee2b9
push ebx
push edi
lea edi, [esi + 8]
mov ebx, eax
mov eax, dword [esi + 4]
push 3
shr eax, 0xb
and eax, 7
push eax
push edi
call fcn.201ee3c2
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, eax
and cx, 0xf800
add ecx, 0x800
xor ecx, eax
and ecx, 0x3800
xor ecx, eax
dec ebx
mov dword [esi + 4], ecx
jne 0x201ee280
pop edi
pop ebx
pop esi
ret
jge 0x201ee2e6
mov ecx, dword [esi + 4]
push 0
mov eax, ecx
add esi, 8
and ax, 0xf800
dec eax
xor eax, ecx
and eax, 0x3800
xor eax, ecx
mov dword [esi - 4], eax
shr eax, 0xb
and eax, 7
push eax
push esi
call fcn.201ee3c2
add esp, 0xc
pop esi
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431004]
jne 0x401010
repz ret
jmp fcn.004015d3

Function at 0x408986
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.00405e84
and dword [ebp - 4], 0
cmp dword [0x433d84], 0
mov ebx, eax
jne 0x408a37
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408ae8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408ae8
push eax
call fcn.00405e12
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433d84], eax
call esi
push eax
call fcn.00405e12
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433d88], eax
call esi
push eax
call fcn.00405e12
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433d8c], eax
call esi
push eax
call fcn.00405e12
pop ecx
mov dword [0x433d94], eax
test eax, eax
je 0x408a37
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e12
pop ecx
mov dword [0x433d90], eax
mov eax, dword [0x433d90]
cmp eax, ebx
je 0x408a8f
cmp dword [0x433d94], ebx
je 0x408a8f
push eax
call fcn.00405e8d
push dword [0x433d94]
mov esi, eax
call fcn.00405e8d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408a8f
test edi, edi
je 0x408a8f
call esi
test eax, eax
je 0x408a86
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408a86
test byte [ebp - 0xc], 1
jne 0x408a8f
or dword [ebp + 0x10], 0x200000
jmp 0x408ac8
mov eax, dword [0x433d88]
cmp eax, ebx
je 0x408ac8
push eax
call fcn.00405e8d
pop ecx
test eax, eax
je 0x408ac8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408ac8
mov eax, dword [0x433d8c]
cmp eax, ebx
je 0x408ac8
push eax
call fcn.00405e8d
pop ecx
test eax, eax
je 0x408ac8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433d84]
call fcn.00405e8d
pop ecx
test eax, eax
je 0x408ae8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408aea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b7d0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1f7ab94], 0x930
jne 0x40b7fa
push str.sobugo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1f7ab94], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1f7a9d8], eax
jne 0x40b82d
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameW
lea edx, [ebp - 0x820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x4029ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029db
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d30
jmp 0x4029f9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402934
mov edi, eax
test ebx, ebx
je 0x4029f9
cmp dword [esi], 0
je 0x4029f9
dec ebx
jmp 0x4029e2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f48
xor eax, eax
push ebp
push 0x402f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405be0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405d98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c41
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405db4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cae
xor eax, eax
push ebp
push 0x405ca7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405dd4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cae
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405d8f
cmp byte [ebp - 0xd], 0
jne 0x405cf0
cmp byte [ebp - 0x12], 0
je 0x405d8f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d09
dec ebx
cmp byte [ebx], 0x2e
je 0x405d18
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d08
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d8f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d45
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d8f
cmp byte [ebp - 0xd], 0
je 0x405d8f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d8f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b934
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b96d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d30
jmp 0x40b976
mov eax, ebx
mov edx, esi
call fcn.00403ce4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4