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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41adb8
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0041d6a0
mov edx, dword [ebx + 0x2c]
cmp esi, dword [ebx + 0x28]
jb 0x41ad84
lea ebp, [esi + 1]
mov dword [esp], edx
lea eax, [ebp*4]
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x41adc4
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41adc4
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0041d6f0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00419f20
mov ebx, eax
jmp 0x41acd5
mov dword [esp], edi
call fcn.0041d6f0
mov eax, 0xc
jmp 0x41adac

Function at 0x41ae60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ae88
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.00419f20
test eax, eax
jne 0x41ae7d
add esp, 0x1c
ret

Function at 0x41aef0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41af18
add eax, 0xc
add esp, 0x1c
ret
call fcn.00419f20
test eax, eax
jne 0x41af0d
jmp 0x41af10
Function at 0x41af50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041a050
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41af72
call fcn.0041a080
test byte [ebx + 0x20], 0x30
jne 0x41af8c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41afcd
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41b00d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41afc2
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41afd6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.00419e50
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41afcd
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41b021
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41afee

Function at 0x41b030
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x42eafc]
test eax, eax
jne 0x41b040
xor eax, eax
ret
sub esp, 0x1c
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b080
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41b070
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41b064
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41b066
call fcn.00419f20
test eax, eax
je 0x41b064
jmp 0x41b05d

Function at 0x41b090
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b0d0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41b0c0
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.00419f20
test eax, eax
jne 0x41b0ad
add esp, 0x1c
ret
Function at 0x41b1d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41b240
test byte [ebx + 0x20], 0xc
jne 0x41b200
mov eax, dword [0x42eafc]
test eax, eax
jne 0x41b210
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.00419160
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41b232
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41b232
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41b251
mov dword [esp], esi
call fcn.00419490
add esp, 0x14
pop ebx
pop esi
ret
call fcn.00419f20
mov ebx, eax
test eax, eax
jne 0x41b1f1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41b271
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.00419490
call fcn.0041b0e0
nop
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41b2f0
mov dword [esp], eax
call fcn.0041c600
xor ecx, ecx
mov ebx, edx
mov edx, 0xffffffff
cmp edx, eax
sbb ecx, ebx
cmovae edx, eax
mov ebx, edx
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x41b340
test ebx, ebx
je 0x41b30a
call fcn.0041b1d0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41b330
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0041c710
call fcn.0041b1d0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.00419e70
mov eax, dword [0x422064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b350
call fcn.0041b1d0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.0041b1d0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x41b2df
call fcn.00419f20
mov esi, eax
jmp 0x41b2c3
call fcn.00419f20
jmp 0x41b30a

Function at 0x4205a0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call fcn.00420510
mov edx, dword [eax]
add dword [eax + 4], 1
test edx, edx
je 0x4211a4
mov ecx, dword [edx + 0x30]
mov ebx, dword [edx + 0x34]
mov esi, 1
add ecx, 0xbcd4d500
mov edi, ecx
adc ebx, 0xb8b1aabc
xor ecx, ecx
cmp esi, edi
sbb ecx, ebx
jae 0x4205f7
xor ecx, ecx
mov dword [eax], ecx
lea ebx, [edx + 0x30]
mov dword [esp], ebx
call fcn.00410f00
mov dword [esp], ebx
call fcn.004202e0
jmp 0x4211a4
neg dword [edx + 0x14]
jmp 0x4205df
Function at 0x420e30
Capabilities:
Query environment variable

Disassembly:
push edi
sub esp, 0x18
mov eax, dword [esp + 0x20]
lea edi, [eax + 0x60]
mov dword [esp], edi
call sub.msvcrt.dll_malloc
test eax, eax
je 0x4202c2
mov edx, eax
lea edi, [edx + 4]
mov ecx, edx
xor eax, eax
mov dword [edx], 0
and edi, 0xfffffffc
mov dword [edx + 0x5c], 0
sub ecx, edi
add ecx, 0x60
shr ecx, 2
rep stosd dword es:[edi], eax
add esp, 0x18
lea eax, [edx + 0x60]
pop edi
ret
mov eax, edi
call fcn.0041f8f0
mov edx, eax
test eax, eax
je 0x420e14
jmp 0x420299
call fcn.00421184
nop
nop
nop
call fcn.00421184
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x42e0e8]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0x422098
call fcn.004195e0
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x42209c], 0
mov dword [0x4220a0], 0
mov dword [0x4220a4], 0
call sub.msvcrt.dll_getenv
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], str.obj_size
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 9
mov dword [esp + 0x24], str.obj_count
mov dword [esp + 0x28], 0x40
test eax, eax
jne 0x420ed6
jmp 0x420fa7
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sub.msvcrt.dll_strchr
mov ebx, eax
test eax, eax
je 0x420f50
xor eax, eax
cmp byte [ebx], 0x3a
sete al
add ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, 0x62696c67
xor edx, 0x2e787863
or eax, edx
jne 0x420ec0
mov eax, dword [ebx + 7]
mov edx, dword [ebx + 0xb]
xor eax, 0x5f68652e
xor edx, 0x6c6f6f70
or eax, edx
jne 0x420ec0
cmp byte [ebx + 0xf], 0x2e
jne 0x420ec0
add ebx, 0x10
lea esi, [esp + 0x14]
lea ebp, [esp + 0x2c]
mov edi, dword [esi]
test edi, edi
je 0x420f37
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x420f41
cmp byte [ebx + edi], 0x3d
je 0x420fd5
add esi, 0xc
cmp ebp, esi
jne 0x420f1a
jmp 0x420ec0
mov eax, dword [esp + 0x28]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x4220a4], ebx
test ebx, ebx
jne 0x420fb6
mov dword [esp], 0x420d90
call fcn.00401400
mov eax, dword [esp + 0x2c]
sub eax, dword [0x42e0e8]
jne 0x421020
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4220a4], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov dword [0x4220a0], eax
test eax, eax
je 0x421013
xor edx, edx
mov dword [0x42209c], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x420f83
lea eax, [esp + 0x10]
xor ebp, ebp
mov dword [esp + 4], eax
lea eax, [ebx + edi + 1]
mov dword [esp + 8], ebp
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov ebx, dword [esp + 0x10]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x421003
test dl, dl
jne 0x420ec0
test eax, eax
js 0x420ec0
mov dword [esi + 8], eax
jmp 0x420ec0
xor ecx, ecx
mov dword [0x4220a4], ecx
jmp 0x420f83
call fcn.00412e10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x10016cfa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmc
clc
test edx, edx
jmp 0x1001e33b
sal ah, cl
bsf ax, di
btr ax, bp
sub ah, bl
push ebp
btr bp, 5
mov ebp, esp
ror ax, cl
rcl ah, 1
btc ax, 1
bts ax, 0xf
sub esp, 0x18
aad 0xad
not ah
and ah, ch
push esi
add al, 0xa7
push edi
rcl al, cl
rol ax, 8
push ebx
pushfd
mov dword [esp], edx
btc ax, 0xc
mov eax, dword [ebp + 8]
pushal
bt edi, 3
pushal
stc
test eax, eax
pushfd
lea esp, [esp + 0x44]
je 0x1002c3ab
pushal
mov esi, dword [eax + 0x3c]
cmc
xor edx, ebx
add esi, eax
cmp ch, 0x73
shrd dx, di, 6
sbb edx, 0xd5d57c9
bts dx, 0xb
mov edx, dword [esi + 0x78]
jmp 0x10014983
jmp 0x1002ba30
push dword [esp + 4]
mov byte [esp + 4], bl
lea esp, [esp + 0x24]
je 0x1002c3ab
shl ch, 1
add edx, eax
add cx, cx
call fcn.1001ba97
mov dword [esp + 0x24], 0x7d4a1306
pushal
pushfd
push ecx
lea esp, [esp + 0x4c]
jmp 0x1002dedc
push 0x4bc9b65b
mov dword [esp], eax
pushfd
mov dword [esp], ebx
call fcn.1002c915
pushal
aam 0xb3
add al, 0xa0
mov eax, ebp
pushal
call fcn.1002d9e6
Function at 0x635370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1de000]
push edi
jmp 0x63538a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x635391
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x635380
mov eax, 1
add ebx, ebx
jne 0x6353a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6353b4
jne 0x6353d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6353d3
dec eax
add ebx, ebx
jne 0x6353c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x635398
add ebx, ebx
jne 0x6353cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x635425
xor ecx, ecx
sub eax, 3
jb 0x6353eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x63545a
sar eax, 1
mov ebp, eax
jmp 0x6353f6
add ebx, ebx
jne 0x6353f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6353c4
inc ecx
add ebx, ebx
jne 0x635404
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6353c4
add ebx, ebx
jne 0x635411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x635406
jne 0x635422
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x635406
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x635444
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x635436
jmp 0x635386
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x635444
add edi, ecx
jmp 0x635386
pop esi
mov edi, esi
mov ecx, 0x3eac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x635462
cmp byte [edi], 0x11
jne 0x635462
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 0x635467
lea edi, [esi + 0x22e000]
mov eax, dword [edi]
or eax, eax
je 0x6354df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x390170]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3902ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x635494
mov ecx, edi
jns 0x6354c3
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 + 0x3902f0]
or eax, eax
je 0x6354d9
mov dword [ebx], eax
add ebx, 4
jmp 0x6354b1
call dword [esi + 0x390300]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x635510
cmp al, 0xef
ja 0x635503
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6354e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6354f2
mov ebp, dword [esi + 0x3902f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x635544
sub esp, 0xffffff80
jmp 0x4288dd
Function at 0x10518160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105182b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10518186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10518172
add dl, dl
jne 0x10518191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105181e4
xor eax, eax
add dl, dl
jne 0x1051819e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10518285
add dl, dl
jne 0x105181ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105181b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105181c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105181ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105181da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1051817d
mov eax, 1
add dl, dl
jne 0x105181f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105181fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105181e9
sub eax, ebx
mov ebx, 1
jne 0x10518230
mov ecx, 1
add dl, dl
jne 0x10518216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10518221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051820d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051817d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10518247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10518252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051823e
cmp eax, 0x7d00
jae 0x10518275
cmp eax, 0x500
jb 0x10518270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051817d
cmp eax, 0x7f
ja 0x10518278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051817d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105182a6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1051817d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x4cde6106
nop
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0xe802ac2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402dcc
Capabilities:
Query or enumerate registry value

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

Function at 0x403b58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a044], 0
je 0x403bb9
cmp word [0x41a218], 0xd7b2
jne 0x403b81
cmp dword [0x41a220], 0
jbe 0x403b81
mov eax, 0x41a214
call dword [0x41a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41906c
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 0x403be0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x419030], 0
jne 0x403bd5
push 0
push 0x419064
push 0x41906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e0c
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 0xf0019
push 0
push 0x40503c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e8f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40503c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e8f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405058
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f18
xor eax, eax
push ebp
push 0x404f11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404c54
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 0x404ef6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405078
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404ef6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f18
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405032
cmp byte [ebp - 0xd], 0
jne 0x404f5f
cmp byte [ebp - 0x12], 0
je 0x405032
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f78
dec ebx
cmp byte [ebx], 0x2e
je 0x404f87
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f77
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405032
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404fc4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405032
cmp byte [ebp - 0xd], 0
je 0x405032
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405032
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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