joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c0e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100271c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x1002a398]
xor edi, edi
cmp ecx, edi
jne 0x1000c12b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1000c138
mov dword [ebp - 0x14], edi
jmp 0x1000c150
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1000c1e6
mov ecx, dword [0x1002a398]
mov eax, dword [ecx]
cmp eax, edi
je 0x1000c117
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c117
mov ebx, 0x1002a398
mov dword [ebp - 4], edi
call fcn.1000c200
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1000c18e
push 0x10025364
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1000d99b
mov ecx, dword [0x1002a398]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1000c1a8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1000c1d2
push 0x10025364
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1000d99b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000c1c9
call fcn.1000c510
mov eax, 0x1000c1cf
ret
mov eax, dword [0x1002a398]
mov eax, dword [eax]
test eax, eax
je 0x1000c1e4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c200
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000c22d
xor ecx, ecx
jmp 0x1000c239
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000c2ed
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000c260
mov dword [esp + 0xc], esi
jmp 0x1000c2c0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000c2b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000c2ac
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000c2c0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000c2c0
push 0x10024578
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000c2c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000c2e3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000c252
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000c301
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000c440
test eax, eax
je 0x1000c301
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000c310
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001b80b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100271c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000de40
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000c3a8
push 0x10025364
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000d99b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000c9cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100271c0]
jne 0x1000c9d5
repz ret
jmp fcn.1000ed19
Function at 0x100178cd
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.1000efca
and dword [ebp - 4], 0
cmp dword [0x10029254], 0
mov ebx, eax
jne 0x1001797e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10017a2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10017a2f
push eax
call fcn.1000ef58
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10029254], eax
call esi
push eax
call fcn.1000ef58
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10029258], eax
call esi
push eax
call fcn.1000ef58
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002925c], eax
call esi
push eax
call fcn.1000ef58
pop ecx
mov dword [0x10029264], eax
test eax, eax
je 0x1001797e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000ef58
pop ecx
mov dword [0x10029260], eax
mov eax, dword [0x10029260]
cmp eax, ebx
je 0x100179d6
cmp dword [0x10029264], ebx
je 0x100179d6
push eax
call fcn.1000efd3
push dword [0x10029264]
mov esi, eax
call fcn.1000efd3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100179d6
test edi, edi
je 0x100179d6
call esi
test eax, eax
je 0x100179cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100179cd
test byte [ebp - 0xc], 1
jne 0x100179d6
or dword [ebp + 0x10], 0x200000
jmp 0x10017a0f
mov eax, dword [0x10029258]
cmp eax, ebx
je 0x10017a0f
push eax
call fcn.1000efd3
pop ecx
test eax, eax
je 0x10017a0f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10017a0f
mov eax, dword [0x1002925c]
cmp eax, ebx
je 0x10017a0f
push eax
call fcn.1000efd3
pop ecx
test eax, eax
je 0x10017a0f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10029254]
call fcn.1000efd3
pop ecx
test eax, eax
je 0x10017a2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10017a31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x640246
Capabilities:
Execute anti-debugging instructions

Disassembly:
add eax, 0x5145a0ba
mov byte [esp + 8], al
push dword [esp + 7]
mov dword [esp + 8], eax
jmp 0x640274
push word [esp + 7]
jmp 0x640251
jl 0x640230
mov byte [esp + 8], al
push dword [esp + 7]
jmp 0x64028a
push word [esp + 7]
mov dword [esp + 0x38], esi
call fcn.006402c4
insd dword es:[edi], dx
jmp 0x640300
mov dword [esp + 8], eax
push word [esp + 7]
mov dword [esp + 0x38], esi
jmp 0x64027d
jnp 0x6402e8
jp 0x640322
jmp 0x640383
bts si, bp
mov bl, byte [esp]
jmp 0x6408af
mov cl, 0x3f
clc
push ecx
jmp 0x640304
mov ebp, dword [esp + 0x30]
or dx, bx
jg 0x640306
jle 0x640a69
mov dword [eax], ebp
dec ebx
xchg dword [esp + 8], edi
mov di, word [esp]
xchg si, ax
mov dl, al
cmc
push dword [esp + 8]
ret 0xc
mov ecx, ebp
mov edx, ebx
not eax
jmp 0x640457
not eax
jmp 0x6403ce
pushal
stc
pop dword [esp + 0xb]
jmp 0x64048c
lea ebx, [edx*4]
mov ebx, esp
lea edx, [ebp - 0x12]
xor bl, 0x4f
js 0x640441
jns 0x6404a2
imul byte [edi - 1]
lcall 0x7116, 0x801cc569
add byte [edx - 0x5e], 0x3d
lodsd eax, dword [esi]
mov ah, 0x47
cli
invalid

Function at 0x6402c4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf062c818
jmp 0x6402fe
push word [esp]
jge 0x6403c0
mov dword [esp + 0x38], edi
jmp 0x640339
mov byte [esp + 1], dh
lea esp, [esp + 2]
jmp 0x6402ae
rol ecx, cl
lea esp, [esp + 0x38]
jmp 0x6403c8
mov dword [esp + 0x38], edi
lea esp, [esp + 0x38]
pushfd
jmp 0x63f39d

Function at 0x64e980
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x64e987
add esp, 8
jns 0x64e96a
js 0x64e96a
sub esp, 4
jbe 0x64e9ce
mov edi, dword [esp + 4]
push ebx
mov byte [esp + 1], dh
jmp 0x64e9b4
add esp, 2
lea esp, [esp + 2]
jmp 0x64e9ef
mov edi, dword [esp + 4]
push ebx
jmp 0x64e9a7

Function at 0x64eb3d
Capabilities:
Execute anti-debugging instructions

Disassembly:
sete dh
not dl
call fcn.0064e980
mov byte [esp + 1], dh
add esp, 2
jmp 0x64e9eb
shl bx, 0
lea ebx, [ebx*4]
jmp 0x64ea10
lea esp, [esp + 2]
lea esp, [esp + 8]
bsf edx, edx
jno 0x64e9d5
jo 0x64ea3f
pushal
jmp 0x64ea1f
mov esi, dword [esp]
setp bh
lea esp, [esp + 4]
jmp 0x6403ce
sub edi, 4
cmc
jmp 0x64eaa7
lea eax, [esi + ebp]
call fcn.0064ea62
or edx, dword [edx + ecx - reloc.KERNEL32.dll_GetFileAttributesA]
add dword [ecx + reloc.KERNEL32.dll_GetFileAttributesA], edx
add esp, dword [esi - 0x3f]
jecxz 0x64ea43
shl bx, 0
lea ebx, [ebx*4]
jmp 0x64ea10
jp 0x64ea29
lea eax, [esi + ebp]
jmp 0x64ea2c
jmp 0x64e99d

Function at 0x6596bc
Capabilities:
Execute anti-debugging instructions

Disassembly:
clc
jp 0x6596c8
mov ax, dx
dec ax
mov ax, 0xd2d9
rdtsc
jmp 0x6596cf
lea esp, [esp + 4]
dec cl
mov ax, 0x821d
jmp 0x6596a6
mov ax, dx
dec ax
jmp 0x6596eb
sub esp, 0xd
jmp 0x6596f4
Function at 0x71205f
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x7120b9
pushfd
pop word [esp + 5]
mov word [esp], sp
mov ah, 0xbb
bsr di, bp
jmp 0x7120cf
xchg dword [esp + 1], edi
xchg dword [esp + 3], esi
not di
sub esp, 0
inc dh
mov byte [esp + 4], bh
jmp 0x7120a3
bsf esi, esp
xchg edx, ebx
lea esp, [esp + 1]
xchg dword [esp + 4], eax
xchg al, bl
lea esi, [edx - 0x94]
jmp 0x712123
push dword [esp + 8]
mov edi, 0x64451cd1
mov cl, 0xf
mov dx, di
pushal
add esp, 0x1f
jmp 0x712150
btc eax, eax
sub esp, 0xf
pop dword [esp + 0xe]
mov si, 0x72e2
pop dword [esp + 5]
add esp, 1
jmp 0x712103
xchg dword [esp + 7], edi
push word [esp + 0x18]
mov cl, bl
mov si, word [esp + 0xa]
jmp 0x712c00
sub esp, 0x11
push word [esp + 0xd]
xchg byte [esp + 0x19], al
xchg edx, esi
pop edx
lea ecx, [ecx + ebx]
jmp 0x71213a
std
add esp, 0x13
setg ch
xchg word [esp + 3], bp
inc esi
dec si
jmp 0x7121a9
pop ebx
push word [esp + 0x12]
mov eax, 0x1df78d80
add edi, ebx
mov ax, di
not dh
jmp 0x71217f
xchg bp, ax
mov dword [esp], esp
add esp, 0
xchg word [esp + 2], bp
push bx
jmp 0x71223a
setp ah
lea edi, reloc.KERNEL32.dll_GetFileAttributesA
cld
dec ch
xchg al, cl
push word [esp + 2]
jmp 0x712195
xchg word [esp + 3], dx
inc cl
mov dh, cl
mov edi, ecx
inc al
jmp 0x71221e
sub esp, 1
lea ebp, reloc.KERNEL32.dll_GetFileAttributesA
rdtsc
mov dword [esp], esp
mov ebx, 0x8cd07e37
mov edi, 0xf1224319
jmp 0x7121d5
mov dword [esp + 0xb], esi
dec ax
push ebx
bsr si, di
mov edx, dword [esp + 0x20]
popal
jmp 0x7121eb
rcl si, 0xc
mov bh, byte [esp + 5]
pop dx
add esp, 1
setl bl
pop word [esp]
jmp 0x712263
shl ebp, cl
ror ecx, cl
mov cx, word [esp + 3]
cpuid
add esp, 5
sub esp, 0x1f
jmp 0x71220c
mov edi, dword [esp + 4]
xchg dword [esp], eax
pop word [esp]
not cl
xchg bx, ax
jmp 0x7122ff
mov si, 0x9b2e
not di
clc
rdtsc
mov dx, 0x8c3b
sub esp, 3
jmp 0x71224d
rdtsc
cpuid
btr si, di
mov dword [esp + 0x14], eax
mov word [esp + 0x16], si
not al
jmp 0x7121c0
xchg edi, ebx
call fcn.007122b5
mov byte [esp + 2], cl
xchg byte [esp + 2], cl
pop dword [esp + 4]
mov ebp, 0xd73a80bd
rcr cx, 8
mov word [esp + 4], dx
jmp 0x712473
pop word [esp + 3]
call fcn.007123a0
pushfd
sbb cl, byte [eax - 0x40ce511]
ror byte [ebp - 0x24], cl
das
mov ecx, 0xc9eeac5
mov ecx, 0xc9eeac5
mov bx, word [esp + 3]
btr bx, si
mov si, word [esp + 7]
cpuid
jmp 0x71233f
pop word [esp]
mov dl, cl
xchg dword [esp + 1], edi
mov ax, 0x7688
btc edx, ebx
mov cx, 0x6228
jmp 0x712355
dec ebx
mov dword [esp + 3], edi
mov di, 0x612e
pop edx
mov bx, word [esp + 6]
bts si, sp
jmp 0x712373
mov cx, dx
btc bx, dx
push dword [esp + 3]
not dl
lea edi, reloc.KERNEL32.dll_GetFileAttributesA
mov ebp, 0x5f2b3864
jmp 0x7123c6
pop word [esp + 0xd]
pop ecx
lea esp, [esp + 0x13]
mov ecx, dword [esp + 0xc]
mov ch, al
pop word [esp + 2]
jmp 0x712287
push word [esp]
sub esp, 0xf
rdtsc
xchg word [esp + 5], bx
dec esi
pop word [esp + 8]
jmp 0x7124af
Function at 0x712705
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dx, di
xchg word [esp], dx
stc
lea ecx, [edi*4]
mov cl, 0x79
bswap edi
jmp 0x7128e8
btr dx, cx
mov word [esp + 0x12], bp
jmp 0x7126da
xchg word [esp + 5], cx
cmc
dec si
pushfd
rcl esi, 0xe
jmp 0x712750
std
mov ebp, 0x8a85ca37
mov dl, byte [esp + 1]
cmp al, 0x67
setnp cl
mov cx, si
jmp 0x712710
mov esi, ecx
add esp, 5
rdtsc
mov di, dx
jmp 0x712797
mov edx, 0x6a1f4064
mov ebx, 0x2786b54a
mov bl, ch
pop dword [esp + 3]
jmp 0x71273a
lea eax, [edx*4]
lea esi, reloc.KERNEL32.dll_GetFileAttributesA
neg bl
lea esp, [esp + 9]
push si
xchg dword [esp], ecx
jmp 0x712726
inc ebx
not si
mov ebx, ebp
bswap esi
mov word [esp + 2], cx
xchg ebx, esi
jmp 0x7127cf
lea ebx, [esp - 0xc8]
push word [esp + 1]
setno bh
mov eax, dword [esp + 1]
mov dx, word [esp]
cpuid
jmp 0x712781
pushfd
push word [esp + 2]
rdtsc
std
lea ebp, [edx*4]
xchg ecx, eax
jmp 0x7127f8
push dword [esp + 3]
rcl bh, 1
mov bl, al
rdtsc
or bp, di
lea esp, [esp + 8]
jmp 0x7127b2
setg ch
mov dword [esp], edx
mov ch, dl
pop edi
mov cl, bl
lea esi, [edx + esi]
jmp 0x71280c
mov word [esp + 4], bp
xchg bl, dh
neg dl
lea ebp, [ebx + ebp]
xchg dl, cl
lea esp, [esp + 3]
jmp 0x7127e2
mov si, 0x76e4
bt edx, esi
lea edx, [edx*4]
not bh
mov cx, sp
sub esp, 0xb
jmp 0x71285e
cld
lea ebp, [ecx*4]
mov bp, cx
lea eax, reloc.KERNEL32.dll_GetFileAttributesA
lea esi, reloc.KERNEL32.dll_GetFileAttributesA
mov ch, byte [esp + 0xc]
jmp 0x712767
mov bh, 0xa2
pop dword [esp + 9]
xchg word [esp], bx
xchg word [esp + 0x10], bp
jmp 0x712879
mov byte [esp + 4], ch
push word [esp + 0xa]
lea eax, [eax*4]
not dx
sub esp, 0xf
xchg bx, ax
jmp 0x712848
lea esi, [eax*4]
bsf ebp, esi
clc
call fcn.007128d0
mov di, 0x89b5
bsr esi, eax
push dword [esp + 7]
pop word [esp + 0xc]
mov si, bx
setb dh
jmp 0x712828
cmc
stc
pop ecx
pop dword [esp + 8]
pop ebx
cmp esi, 0x2136dfbc
jmp 0x71289f

Function at 0x712de5
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp], ch
xchg ch, cl
mov ebp, edx
mov ax, word [esp + 2]
mov di, 0xd31d
jmp 0x712e15
add esp, 1
add esp, 1
xchg edx, esi
mov ch, byte [esp]
lea eax, [esi + edi]
rdtsc
jmp 0x712f17
setl ch
cld
not dl
clc
xchg byte [esp], bl
neg eax
jmp 0x712e42
bt edi, ebp
inc bx
xchg byte [esp], cl
shl si, cl
rdtsc
cld
jmp 0x712e64
add esp, 1
mov edx, esi
lea esp, [esp]
xchg byte [esp], dh
mov bx, 0x9762
rdtsc
jmp 0x712ecc
Function at 0x403398
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403430
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403410
xor eax, eax
push ebp
push 0x403409
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 0x40344c
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 0x403410
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b048], 0
je 0x404171
cmp word [0x46b21c], 0xd7b2
jne 0x404139
cmp dword [0x46b224], 0
jbe 0x404139
mov eax, 0x46b218
call dword [0x46b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x469054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404198
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46901c], 0
jne 0x40418d
push 0
push 0x469074
push 0x469054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409570
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 0x4095a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040437c
jmp 0x4095b2
mov eax, ebx
mov edx, esi
call fcn.004042e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4095bc
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_1
test eax, eax
jle 0x4095dd
mov al, byte [esp]
jmp 0x4095df
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c64
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409adc
mov eax, dword [0x46a7d8]
cmp byte [eax], 0
je 0x409ccc
mov eax, dword [0x46a61c]
call fcn.00402c5c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004087a8
push eax
lea eax, [esp + 0x50]
push eax
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 0x409d14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d02
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46a5d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b714]
call fcn.004059a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40a7f8
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 0x40a85c
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a863
lea eax, [ebp - 0xc]
call fcn.0040428c
ret
Function at 0x41c48c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46ba20
cmp dword [edi], 0
jne 0x41c508
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46ba1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4694bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c464
lea eax, [esi + 5]
call fcn.0041c484
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c484
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 0x41c4dd
mov dword [0x46ba1c], 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 0x41d97c
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 0x41d982
ret

Function at 0x41fe70
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 0x41fec1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fea8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fe98
jmp 0x41fec1
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 0x41fea9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b460
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 0x42b3ac
call sub.user32.dll_EnumWindows
ret

Function at 0x42b584
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 0x42b601
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042afd0
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 0x42b5a9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042ac28
cmp dword [ebp - 4], 0
je 0x42b5eb
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040473c
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 0x42b608
lea eax, [ebp - 4]
call fcn.0040428c
ret

Function at 0x42e5d0
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 [0x46bba8], 0
je 0x42e71f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46a780]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42e71f
mov eax, dword [0x46bbac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46bba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42e6ee
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46bba8]
call fcn.00413af0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42e6e6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42e6e6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42e6e6
mov eax, dword [ebp - 0x14]
call fcn.004370dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42e6e6
push ebp
call fcn.0042e58c
pop ecx
test al, al
jne 0x42e6e6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42e6a2
mov eax, dword [ebp - 0x14]
call fcn.00435c70
dec eax
jle 0x42e6e6
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.0040371c
cmp byte [ebp - 1], 0
je 0x42e6e6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42e6e6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46bbac]
call fcn.0042dd54
inc edi
dec ebx
jne 0x42e635
mov eax, dword [0x46bbac]
cmp dword [eax + 8], 0
jle 0x42e706
mov eax, dword [0x46bbac]
call fcn.0042dde4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42e71f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042e3f4
pop ecx
test al, al
jne 0x42e71f
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