joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c2390
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004b977a
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x48e443
xor al, al
jmp 0x48e56f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x48e465
xor al, al
jmp 0x48e56f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x48e478
xor al, al
jmp 0x48e56f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x48e48c
xor al, al
jmp 0x48e56f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004abd85
test eax, eax
jne 0x48e4c0
xor al, al
jmp 0x48e56f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4f1624
mov dword [esp + 0x20], ebp
call fcn.004b977a
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004b4e1d
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004b4e74
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x48e554
mov ax, word [ebx]
test ax, ax
je 0x48e546
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0048e590
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x48e52a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004b4e74
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x48ead0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004b797d
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x48eb16
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0049c948
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x50efb4
push ecx
call fcn.0049e032
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x48ebd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48ec36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48ec36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48ec17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48efc0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x48eff8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x48fc80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48fcc9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x490140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048fcf0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048fd70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048fd70
lea ecx, [esi + 0xc]
call fcn.004adc2b
lea ecx, [esi + 0x10]
call fcn.004adc2b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00491300
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00491300
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00491300
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004adca0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004adca0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4aeaf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004b977a
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4aeb29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004aeb3c
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b0113
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b014b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ae147
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ae11f
jmp 0x4b0157
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b1ad9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b1b1b
call fcn.004b977a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b1b1b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b1b12
xor eax, eax
jmp 0x4b1b23
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b1b29
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b9caa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b9cd8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b9cf6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b9c10
jmp 0x4b9cf6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b9cf6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b9c10
test edi, edi
mov eax, edi
jne 0x4b9ce0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x49fe26
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
mov word [esp], bx
mov dx, word [esp + 2]
jmp 0x49fe82
add esp, 1
neg ax
call fcn.0049feca
hlt
push dword [esp + 0xa]
jmp 0x49ff44
sub esp, 8
jb 0x49fe5f
add esp, 1
neg ax
jmp 0x49ffc3
btc edx, edi
js 0x49ff96
shl dh, 3
pushal
bswap edx
btc edx, esp
xchg byte [esp + 0x12], dh
jmp 0x49ff58
mov eax, 0x14853a78
lea esp, [esp + 3]
lea esp, [esp + 0xc]
add cl, 0xa
xchg dh, dl
jmp 0x49ff2c
xchg dh, dl
pop word [esp + 3]
or eax, eax
js 0x49ff7a
xchg word [esp + 8], dx
jmp 0x4a0010
bswap edx
btc edx, esp
xchg byte [esp + 0x12], dh
jmp 0x49ff58
xchg word [esp + 8], dx
jmp 0x49ff9c
shl dh, 3
pushal
jmp 0x49ff6f
lea esp, [esp + 2]
lea esp, [esp + 0x1c]
not cl
rdtsc
not dh
jmp 0x49ffe9
not dh
rol eax, 0xd
jmp 0x49fff6
mov dword [esp + 2], ebp
mov dl, 0xe4
bsf ax, ax
jmp 0x49fe75
jle 0x49ffac
not dh
rol eax, 0xd
jmp 0x49fff6
mov edx, eax
xchg ah, dh
and ecx, 0x3c
xchg dh, al
inc dh
jmp 0x49ffd2
mov edx, dword [ebp]
not eax
lea eax, [esi + 0xd]
mov al, 0x2c
rcl eax, 5
jmp 0x4a0054
lea esp, [esp + 2]
jmp 0x49ffa0
add ebp, 4
neg ecx
jne 0x4a003a
sub esp, 0xe
stc
lea ecx, [ebp*4]
lea esp, [esp + 2]
jmp fcn.0049f0d5
dec dx
je 0x4a0016
jne 0x4a0016
jmp 0x4a0072
lea esp, [esp + 2]
jmp fcn.0049f0d5
jl 0x4a0099
jge 0x4a0099
sub esp, 0xe
stc
lea ecx, [ebp*4]
jmp 0x4a003c
mov dword [ecx + esi], edx
xchg ch, dl
mov dx, 0xae51
lea eax, [ebp - 7]
jmp 0x4a0034

Function at 0x730947
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x18
mov edx, 0x8a0634d6
mov dword [esp + 0x13], eax
mov dh, 0x82
mov dl, dh
sub esp, 0x10
jmp 0x730990
inc dh
stc
mov dx, word [esp + 2]
xor edx, ebp
jmp 0x730920
mov ebp, 0xc394c574
not ebp
rdtsc
neg ebp
lea ebp, [esp + esi]
shl bp, cl
jmp 0x7309ee
lea edx, [esi - 0x25]
push esp
mov eax, 0x95d92b7e
mov dword [esp + 0xf], ebp
mov bp, bx
neg edx
jmp 0x73096a
pop dword [esp + 2]
sete dh
mov edx, dword [esp + 0xd]
pop dword [esp + 6]
btr ebp, edx
add bp, 0x7bfe
jmp 0x7309d6
xchg dh, al
mov byte [esp + 0xf], dh
xchg ebp, eax
xchg ebp, eax
setno ah
mov word [esp + 4], di
jmp 0x7309a4
xchg word [esp + 5], bp
push word [esp + 7]
pop word [esp + 1]
jmp 0x730a3b
sub esp, 0x14
xchg bp, dx
mov byte [esp + 0xc], ch
mov bp, 0xfb89
cmc
bswap ebp
jmp 0x7309c4
xchg dword [esp + 6], eax
xchg byte [esp], dl
push esp
pop edx
cmc
sub esp, 0x12
jmp 0x730a24

Function at 0x730bfd
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 0x19]
xchg bp, ax
mov ebp, esi
pop dword [esp + 6]
rdtsc
cld
jmp 0x730c41
mov al, 0x86
inc dl
sub esp, 0x18
pop dword [esp + 0x1a]
mov dword [esp + 9], esi
jmp 0x730bd5
lea esp, [esp + 5]
setb dh
push dword [esp + 7]
xchg word [esp + 5], bp
jmp 0x730c25
Function at 0x7310cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ebp, [ecx*4]
mov ebp, 0xa7dd6e9e
xchg ebp, eax
btr eax, edx
jmp 0x731133
xchg word [esp + 0x1d], bp
jmp 0x7310b4
xchg word [esp + 0xf], dx
xchg word [esp + 0x16], bp
sub esp, 0x16
lea esp, [esp + 0x44]
stc
lea ebp, [edi*4]
jmp 0x7311cc
lea ebp, [esp + ebp]
mov ebp, 0xe9871ece
pop dword [esp + 0x14]
inc al
xchg ebp, edx
mov dh, 0x48
jmp 0x7310f5
mov bp, 0x5007
push dword [esp + 0xe]
push word [esp + 0x25]
pop word [esp + 0x25]
push word [esp + 9]
mov bp, 0x314b
jmp 0x73111a
btc ebp, ebx
mov al, ah
rcl dh, 3
xchg dh, al
neg dx
bsr ax, bp
jmp 0x73119e
xchg ebp, edx
mov edx, 0xa0a6b688
lea ebp, [eax + 0x561e1ad1]
mov ebp, dword [esp]
mov al, 0x2e
bsr bp, cx
jmp 0x731150
and ebp, ecx
mov eax, 0xa5e9e1aa
mov ax, di
lea ebp, [ebp*4]
setg ah
xchg edx, ebp
jmp 0x7311b1
bswap ebp
setp dh
setle dh
rdtsc
xchg dx, bp
mov dx, word [esp]
jmp 0x731181
sub esp, 8
push dword [esp + 6]
mov byte [esp + 3], ch
xchg byte [esp + 7], al
shr dh, 5
jmp 0x7311e1
rdtsc
mov bp, 0x128b
bswap edx
bsf bp, si
not dx
mov ax, 0xa22d
jmp 0x731169
pop dword [esp + 2]
xchg ah, dh
lea eax, [edx + edi]
rdtsc
pop dx
setp dh
jmp 0x731451
mov bp, dx
lea esp, [esp]
mov ax, 0x64d7
sub esp, 8
mov ebp, 0x3477e062
add edx, ebp
jmp 0x73120a
push dword [esp]
lea ebp, [esp + ebp]
add esp, 7
cld
xchg bp, ax
xchg byte [esp], dl
jmp 0x731230
mov edx, ecx
bsf bp, ax
xchg dword [esp + 2], ebp
mov dl, 0xf4
pop ebp
mov bp, 0xb9db
jmp 0x7312ec
dec bp
add al, dh
push word [esp + 1]
sete dh
clc
mov dl, 0x1c
jmp 0x73133f

Function at 0x731481
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
mov al, ah
push dword [esp + 2]
mov byte [esp + 2], ch
add esp, 0xb
mov dword [esp], ecx
jmp 0x7314a8
not dx
lea edx, [ecx*4]
sub esp, 8
jmp 0x731465

Function at 0x7316c3
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dh, byte [esp + 2]
lea ebp, [esi + 0x9d]
bsr bp, bp
neg edx
jmp 0x7316c8
lea ebp, [ebx*4]
pop ebp
pushal
xchg ah, dh
add esp, 0x2c
mov dx, 0xcaaf
jmp 0x73168f
push esp
mov dl, 0x84
jmp 0x7316a7
lea ebp, [esp + ecx]
pop word [esp + 5]
mov bp, word [esp + 7]
pop word [esp + 5]
jmp 0x73171c
and ebp, ecx
neg dh
mov byte [esp + 1], dh
xchg word [esp + 2], dx
mov al, ah
lea ebp, [esi - 0xc5]
jmp 0x7316f7

Function at 0x731926
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov al, 0x4e
lea ebp, [ebx*4]
mov ebp, esi
lea eax, [ebx + esi]
pop ax
rcr bp, cl
jmp 0x731935
bsr bp, bp
bts eax, ebx
rdtsc
pop edx
btc ebp, ebx
not dh
jmp 0x7318e0
lea ebp, [eax + edx]
lea eax, [edi*4]
add esp, 3
jmp 0x731904
lea edx, [ebp*4]
pushal
sub bp, 0x320
push dword [esp + 4]
jmp 0x73199e
and eax, ecx
add esp, 0xd
rdtsc
pop eax
push word [esp + 0x12]
xchg dword [esp + 0x12], ebp
jmp 0x73195d
mov ebp, 0xde133b7e
rdtsc
mov ebp, dword [esp + 0x21]
xchg word [esp + 0x1c], bp
pop bp
not dx
jmp 0x731983
Function at 0x731bbc
Capabilities:
Execute anti-debugging instructions

Disassembly:
ror ah, 1
sub ebp, eax
lea ebp, [eax*4]
sub ebp, eax
neg dh
btr ebp, edx
jmp 0x731b47
mov byte [esp], ah
mov dx, word [esp]
xchg byte [esp], al
mov bp, word [esp]
ror ah, 1
jmp 0x731b30
rdtsc
lea esp, [esp + 1]
lea esp, [esp + 1]
xchg byte [esp], dh
mov ax, word [esp + 2]
lea eax, [ebx + edi]
jmp 0x731aed
xchg word [esp], ax
lea ebp, [esp + ecx]
xchg edx, ebp
shl bp, cl
bswap ebp
mov dx, bx
jmp 0x731b9a
neg dh
add al, dh
lea esp, [esp + 1]
btr ebp, esp
neg edx
neg ebp
jmp 0x731b01
sub esp, 0x12
mov dword [esp + 5], eax
cld
mov dh, byte [esp + 0xf]
mov dx, 0x5971
pop bp
jmp 0x731c5c
sub dh, ah
push word [esp + 1]
sub bp, 0x7550
rdtsc
lea esp, [esp + 3]
jmp 0x731b58
mov dh, 0x12
mov ebp, 0x1cc6f51a
mov bp, dx
rcr dh, 7
mov dx, bp
lea eax, [esi + 0x2d]
jmp 0x731b81
mov dh, 0x70
xchg word [esp + 1], dx
mov dh, bh
jmp 0x731b19
bsf bp, ax
rdtsc
lea esp, [esp + 3]
mov bp, 0x5659
xchg ebp, eax
add ebp, ebp
jmp 0x731c1b
add esp, 2
not ax
bt eax, esp
mov bp, di
xchg ebp, eax
ror dh, 5
jmp 0x731bca
mov byte [esp + 1], bh
mov bp, word [esp]
mov dh, byte [esp + 2]
pop bp
mov dh, 0xb2
push edx
jmp 0x731be8
lea ebp, [ebp*4]
sub esp, 2
neg dh
shl dh, 3
inc dh
lea esp, [esp + 2]
jmp 0x731c76
pop word [esp]
mov eax, dword [esp]
mov eax, dword [esp]
xchg byte [esp], dl
stc
jmp 0x731c08
add esp, 5
push word [esp + 7]
xchg dword [esp + 4], ebp
xchg word [esp + 1], bp
mov dh, byte [esp + 3]
add esp, 9
jmp 0x731c45
mov ebp, dword [esp + 0xf]
neg ax
lea edx, [ecx - 0x33]
mov al, 0xe
mov eax, esp
inc dh
jmp 0x731cbd
mov dh, byte [esp]
setle dh
mov ax, si
cmc
not dx
call fcn.00731ca7
and eax, 0xae5334a6
inc ebx
push edi
mov esi, 0xb9f858d
wait
dec ecx

Function at 0x731f56
Capabilities:
Parse pe header

Disassembly:
mov dword [esp + 0xac], edi
lea esp, [esp + 0xac]
jmp 0x731fb0
mov eax, dword fs:[0x30]
jmp 0x731f86
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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 0x4029ec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404380
test esi, esi
jne 0x402a22
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404470
jmp 0x402a40
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402900
mov edi, eax
test esi, esi
je 0x402a40
cmp dword [ebx], 0
je 0x402a40
dec esi
jmp 0x402a29
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40348c
Capabilities:
Query or enumerate registry value

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

Function at 0x404204
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x404265
cmp word [0x46621c], 0xd7b2
jne 0x40422d
cmp dword [0x466224], 0
jbe 0x40422d
mov eax, 0x466218
call dword [fcn.00466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x464054
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 0x40428c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46401c], 0
jne 0x404281
push 0
push 0x464074
push 0x464054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40965c
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 0x409695
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404470
jmp 0x40969e
mov eax, ebx
mov edx, esi
call fcn.004043d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4096a8
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 0x4096c9
mov al, byte [esp]
jmp 0x4096cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409d50
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409bc8
mov eax, dword [0x465764]
cmp byte [eax], 0
je 0x409db8
mov eax, dword [0x4655b8]
call fcn.00402da8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408894
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 0x409e00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409dee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465574]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466714]
call fcn.00405a9c
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 0x40a8e4
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 0x40a948
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.004045e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040858c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a94f
lea eax, [ebp - 0xc]
call fcn.00404380
ret
Function at 0x41c538
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466a20
cmp dword [edi], 0
jne 0x41c5b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4644bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c510
lea eax, [esi + 5]
call fcn.0041c530
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c530
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 0x41c589
mov dword [0x466a1c], 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 0x41da48
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 0x41da4e
ret

Function at 0x41fedc
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 0x41ff2d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ff14
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ff04
jmp 0x41ff2d
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 0x41ff15
pop ebx
mov esp, ebp
pop ebp
ret