joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003daf9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1006d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1003db44
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1003df0f
test al, al
jne 0x1003db3e
sub edx, 2
cmp edx, edi
jne 0x1003db24
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1003db66
lea eax, [edi + 2]
cmp edx, eax
je 0x1003db66
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1003d7c0
add esp, 0x10
jmp 0x1003dc60
push esi
lea ecx, [ebp - 0x255]
call fcn.1003df0f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003dba9
push dword [ebp - 0x25c]
jmp 0x1003db56
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1003dbe6
cmp word [ebp - 0x226], 0
je 0x1003dc07
cmp word [ebp - 0x226], ax
jne 0x1003dbe6
cmp word [ebp - 0x224], 0
je 0x1003dc07
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1003d7c0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1003dc53
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1003dbc0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1003dc3b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1003dc60
push 0x1003d210
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10049ee0
add esp, 0x10
jmp 0x1003dc30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000dfef
leave
ret
Function at 0x1003f53a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1003f5d7
push ebx
push esi
call fcn.1003f4f6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1003f3e8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003f584
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003f5d6
push edi
push eax
call fcn.10037989
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003f5a4
call fcn.1003794f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003f5d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003f3e8
add esp, 0x20
test eax, eax
jne 0x1003f5c3
push edi
call fcn.1003794f
jmp 0x1003f5cb
push ebx
call fcn.1003794f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003f5da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1003f5eb
pop esi
ret
push ebx
push edi
push esi
call fcn.1003f4f6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10037989
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003f613
push ebx
push esi
push edi
call fcn.10017430
add esp, 0xc
push 0
call fcn.1003794f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1003fef4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003f886

Function at 0x100408c5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e9e4
push 0x1005e9dc
push str.FlsAlloc
push 0x1e
call fcn.10040595
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100408f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x100572e4]
call esi
jmp 0x100408ff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10040943
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e9f4
push 0x1005e9ec
push str.FlsGetValue
push 0x20
call fcn.10040595
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004097a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100572e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1004e76b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1006e148]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004e7ab
cmp byte [ebx], 0xa
jne 0x1004e7ab
or byte [eax + edi + 0x28], 4
jmp 0x1004e7b0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1004e8ae
mov al, byte [edx]
cmp al, 0x1a
je 0x1004e890
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1004e7df
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1004e804
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1004e80e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1004e7c1
jmp 0x1004e8ae
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004e88b
cmp dword [ebp - 0xc], 0
je 0x1004e88b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1006e148]
test byte [eax + edi + 0x28], 0x48
je 0x1004e865
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004e850
mov byte [esi], dl
jmp 0x1004e861
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1006e148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004e8ae
cmp byte [ebp - 1], 0xa
jne 0x1004e874
cmp esi, ebx
jne 0x1004e874
mov byte [esi], 0xa
jmp 0x1004e8ad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004d3a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004e8ae
mov byte [esi], 0xd
jmp 0x1004e8ad
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1006e148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004e8aa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004e8ae
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004e8b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1006e148]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004e8fa
cmp word [esi], dx
jne 0x1004e8fa
or byte [edi + eax + 0x28], 4
jmp 0x1004e8ff
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1004ea52
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1004ea32
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1004e941
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004e977
cmp eax, edx
jae 0x1004e983
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1004e919
jmp 0x1004ea52
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004ea2e
cmp dword [ebp - 0x14], 0
je 0x1004ea2e
mov eax, dword [ebx*4 + 0x1006e148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1004ea06
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1004e9cf
mov word [esi], cx
jmp 0x1004ea02
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1006e148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1006e148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1006e148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1004ea52
pop ebx
cmp word [ebp - 4], bx
jne 0x1004ea17
cmp esi, dword [ebp + 0xc]
jne 0x1004ea17
mov word [esi], bx
jmp 0x1004ea4f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004d3a2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1004ea52
push 0xd
jmp 0x1004ea4b
mov ecx, dword [ebx*4 + 0x1006e148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004ea49
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004ea52
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005136b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005123f
Function at 0x40677c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040910c
test esi, esi
jne 0x4067b2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409294
jmp 0x4067d0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004066c0
mov edi, eax
test esi, esi
je 0x4067d0
cmp dword [ebx], 0
je 0x4067d0
dec esi
jmp 0x4067b9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408210
mov byte [esp], al
cmp byte [esp], 0
jne 0x407fb8
test edi, edi
je 0x407fb8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407ef8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407ed3
cmp edi, 0xffffffff
je 0x407e97
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407e97
mov byte [esp], 0
jmp 0x407fb8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407ed3
test ebx, ebx
jne 0x407ec9
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407ec9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407fb8
call 0x408330
dec ebp
test ebp, ebp
jg 0x407e7c
cmp edi, 0xffffffff
je 0x407ef8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ef6
mov byte [esp], 0
jmp 0x407fb8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407e46
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407ef8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408024
mov edx, eax
mov ebx, dword [0x5ec8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407f5c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407f5a
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407f5c
xor edi, edi
cmp byte [esp], 0
je 0x407f82
mov ebx, dword [esi]
test bl, 1
jne 0x407f98
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f62
mov byte [esp + 1], 1
jmp 0x407f98
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407f82
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407f0f
cmp byte [esp], 0
je 0x407fb8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408d6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ec058], 0
je 0x408dd3
cmp word [0x5ec344], 0xd7b2
jne 0x408d95
cmp dword [0x5ec34c], 0
jbe 0x408d95
mov eax, 0x5ec340
call dword [0x5ec35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408e00
call fcn.00409970
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e2032], 0
jne 0x408def
push 0
push 0x5e29ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408fcc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5e2034], 0
je 0x408ff7
mov edx, edi
mov eax, esi
call dword [0x5e2034]
mov ebx, eax
jmp 0x409008
mov eax, 8
call fcn.004063fc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5ec059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408f94
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409038
mov eax, ebx
call fcn.00406418
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b7c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b929
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040910c
cmp si, word [0x5e2a28]
jb 0x40b85c
cmp si, word [0x5e2c28]
ja 0x40b85c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b85c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e2a28]
jae 0x40b836
mov edi, ebx
dec edi
jmp 0x40b857
cmp si, word [ebx*8 + 0x5e2a28]
jbe 0x40b846
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b857
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e2a2c]
call fcn.0040b6e4
jmp 0x40b85c
cmp edi, dword [ebp - 8]
jae 0x40b820
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b90b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b90b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d2c
push dword [ebp - 0x160]
push 0x40b944
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409d2c
push dword [ebp - 0x164]
push 0x40b954
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d2c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b930
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040916c
ret
Function at 0x40badc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bbdf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5eeb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5eeba0]
jne 0x40bb28
mov eax, esi
mov edx, 0x5eeba2
mov ecx, 0x55
call fcn.00409d2c
push 0x5eeb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bbc9
push 0x5eeb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040910c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb97
cmp byte [0x5eeb84], 0
je 0x40bb5c
mov edx, esi
mov eax, ebx
call fcn.0040b9c0
jmp 0x40bb97
mov edx, esi
mov eax, ebx
call fcn.0040b7c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bb97
cmp dword [esi], 0
je 0x40bb80
mov eax, esi
mov edx, 0x40bbf8
call fcn.00409e84
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b7c4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409e84
push 0x5eeb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5eeba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409c70
push eax
push 0x5eeba2
call sub.kernel32.dll_lstrcpynW
push 0x5eeb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bbe6
lea eax, [ebp - 4]
call fcn.0040910c
ret
Function at 0x40be14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004091f0
xor eax, eax
push ebp
push 0x40c039
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40be54
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40be6e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00409c70
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c023
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c048
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c084
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c084
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bf3d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c023
xor eax, eax
push ebp
push 0x40c01c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bc20
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bfac
mov eax, dword [ebp - 0x10]
call fcn.004063fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409cd8
jmp 0x40bff7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c12c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bff7
mov eax, dword [ebp - 0x10]
call fcn.004063fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c12c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409cd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c023
cmp dword [ebp - 8], 0
je 0x40c012
mov eax, dword [ebp - 8]
call fcn.00406418
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c040
lea eax, [ebp - 4]
call fcn.0040910c
ret
Function at 0x40c328
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004091f0
xor eax, eax
push ebp
push 0x40c3e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d2c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409edc
mov eax, dword [ebx]
call fcn.0040c1f0
test al, al
jne 0x40c3c5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d2c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409edc
mov eax, dword [ebx]
call fcn.0040c1f0
test al, al
jne 0x40c3c5
mov eax, ebx
call fcn.0040910c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3ef
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040916c
lea eax, [ebp - 4]
call fcn.0040910c
ret

Function at 0x40cd30
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x421a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421a99
test eax, edx
je 0x421a9c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421a57
movzx eax, word [eax]
sub eax, ecx
jmp 0x421a7e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x421a7f
add ecx, 4
js 0x421a6f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421a7c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421a7e
xor eax, eax
ret
test eax, eax
je 0x421aa8
test edx, edx
jne 0x421a48
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x422da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x422dcd
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x426bf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x426c29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409294
jmp 0x426c32
mov eax, ebx
mov edx, esi
call fcn.004094ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4