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

Disassembly:
mov eax, 0x524eb4
call fcn.00513968
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0052361c
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x5212e7
call fcn.0052361c
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5212f5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x521303
or eax, 0xffffffff
jmp 0x5213eb
mov ecx, esi
call fcn.0052121e
mov dword [ebp - 0x14], eax
call fcn.0051e915
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x52133a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x52133a
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0051e8c9
push dword [ebp - 0x14]
call fcn.0051e3fa
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00520fb6
cmp eax, edi
je 0x5213ad
test byte [esi + 0x24], 0x10
je 0x52137b
push 4
mov ecx, esi
pop ebx
call fcn.0051ddfa
test ah, 1
je 0x521373
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0052041f
cmp dword [esi + 0x1c], edi
je 0x5213ad
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0051de2e
jmp 0x5213ad
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x5213c1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x5213da
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x5213da
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00521258
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x52318e
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 0x5231bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5231da
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005230f4
jmp 0x5231da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5231da
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005230f4
test edi, edi
mov eax, edi
jne 0x5231c4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6d6717f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d6717fb
repz ret
jmp fcn.6d671b91

Function at 0x6d67184e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x6d67185d
pop dword [ebp - 0xc]
mov eax, 0x6d67185d
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x75f3d788
sub dword [ebp - 0x1c], 0x27a1923d
mov dword [ebp - 0x18], 0x1bee0332
add dword [ebp - 0x18], 0x16454913
mov dword [ebp - 0x14], 0xdc6bf2ca
sub dword [ebp - 0x14], 0x901fae9c
mov dword [ebp - 0x10], 0x336439fd
sub dword [ebp - 0x10], 0x336439fd
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x3a371b31
sub eax, 0xcccfeae9
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x759417de
add dword [ebp - 0x1c], 0xfede5178
mov dword [ebp - 0x18], 0x8a2a8ad6
add dword [ebp - 0x18], 0xb741d69f
mov dword [ebp - 0x14], 0xf89589bb
add dword [ebp - 0x14], 0x6ad9e2b1
mov dword [ebp - 0x10], 0xa6faf0a3
add dword [ebp - 0x10], 0x59050f5d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36433
push 0
call eax
mov ecx, 0x487a7f0e
sub ecx, 0x487a3814
xor edx, edx
add edx, eax
mov ebx, 0x6d676200
add ebx, dword [ebp - 0xc]
mov esi, 0x4ebacaab
sub esi, 0xc832f203
sub dword [ebp - 8], ebx
mov edi, dword [ebx]
xor dword [ebp - 4], edx
sub edi, esi
add dword [ebp - 4], esi
mov dword [edx], edi
add dword [ebp - 4], ecx
add edx, 0xb56c48e0
add edx, 0x4a93b724
add ebx, 4
loop 0x6d671971
add eax, 0x5c593e37
add eax, 0xa3a7d084
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x795ddec2
sub ecx, 0xbf6dec2
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x45f05c
push 2
call fcn.0040bcc0
add esp, 4
push eax
call fcn.00403780
add esp, 0xc
push 2
call fcn.00417250
pop ebp
ret

Function at 0x4037c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4679d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00419f39
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4038e9
mov dword [ebp - 0x108], 0
jmp 0x40380d
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 2
jge 0x4038e9
lea edx, [ebp - 0x110]
push edx
push 0x20019
push 0
push str.SoftwareVI_Like_EmacsEnvironment
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax*4 + 0x4673e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4038e4
mov dword [ebp - 0x10c], 0x100
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4038d7
cmp dword [ebp - 0x10c], 0
je 0x4038d7
mov eax, dword [ebp - 0x10c]
sub eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x100
jae 0x4038a0
jmp 0x4038a5
call fcn.00406be0
mov ecx, dword [ebp - 0x118]
mov byte [ebp + ecx - 0x104], 0
lea edx, [ebp - 0x104]
push edx
call fcn.00403900
add esp, 4
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4038e9
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4037fe
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cd0
mov esp, ebp
pop ebp
ret
Function at 0x403e60
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
jne 0x403e88
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push 0x467398
call fcn.00404350
add esp, 8
push 0x400
push 0
push 0x4695c0
call fcn.00407e80
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x403eae
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x404044
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0
jne 0x403edd
mov eax, dword [ebp - 4]
push eax
push 0x4673a0
call fcn.00404350
add esp, 8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x2d
jne 0x40403d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40403b
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, dword [ecx*4 + 0x4695c0]
add edx, 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ecx*4 + 0x4695c0], edx
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x10], al
cmp byte [ebp - 0x10], 0x6b
je 0x403f39
cmp byte [ebp - 0x10], 0x74
je 0x403f77
jmp 0x403fcc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00403de0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x403f72
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405010
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.004053c0
add esp, 4
jmp 0x404036
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00403de0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00419d20
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, 4
imul ecx, eax, 0x74
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x4695c0], edx
cmp dword [ebp - 0x14], 0
jg 0x403fca
mov eax, 4
imul ecx, eax, 0x74
mov dword [ecx + 0x4695c0], 8
jmp 0x404036
cmp dword [0x45e010], 0
je 0x403fef
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
push eax
mov ecx, dword [0x45e010]
push ecx
call fcn.00407fe0
add esp, 8
test eax, eax
je 0x403ff8
cmp dword [0x45e010], 0
jne 0x404036
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
push eax
push str.ivqQ
call fcn.00407fe0
add esp, 8
test eax, eax
jne 0x404036
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
push edx
push str.unknown_option__c_n
push 2
call fcn.0040bcc0
add esp, 4
push eax
call fcn.00403780
add esp, 0xc
push 1
call fcn.00417250
jmp 0x403eec
jmp 0x40403f
jmp 0x404044
jmp 0x403ea5
cmp dword [ebp + 0x10], 0
jne 0x404066
push 1
call fcn.0040bcc0
add esp, 4
push eax
push 1
push 1
push 0x4683c4
call fcn.00418b40
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x404070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x4683c2
push 2
call fcn.0041a490
add esp, 8
push 0
call fcn.0040bcc0
add esp, 4
mov dword [0x4683b4], eax
push 1
call fcn.0040bcc0
add esp, 4
mov dword [0x4683b0], eax
mov dword [0x4683bc], 0
mov dword [0x4683b8], 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403e60
add esp, 0xc
mov edx, dword [section..data]
push edx
call fcn.00405060
add esp, 4
push 1
call dword [0x45e008]
add esp, 4
push 0x467410
call fcn.004052a0
add esp, 4
mov eax, dword [section..data]
push eax
push 0x467418
call fcn.00417270
add esp, 8
test eax, eax
je 0x404116
mov ecx, dword [section..data]
push ecx
call fcn.004052a0
add esp, 4
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403e60
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, 4
imul edx, ecx, 0x6b
cmp dword [edx + 0x4695c0], 0
jne 0x404145
mov dword [ebp - 8], 1
jmp 0x40414c
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [0x4699c0], eax
cmp dword [0x4699c0], 0
je 0x40419d
mov ecx, dword [0x4699c4]
push ecx
push 0x467420
call fcn.00417270
add esp, 8
test eax, eax
je 0x40419d
mov edx, dword [0x4699c4]
push edx
mov eax, dword [section..data]
push eax
call fcn.00417270
add esp, 8
test eax, eax
je 0x40419d
mov ecx, dword [0x4699c4]
push ecx
call fcn.004052a0
add esp, 4
mov edx, dword [0x4699c4]
push edx
call fcn.00404a60
add esp, 4
push 0
call dword [0x45e008]
add esp, 4
mov eax, 4
imul ecx, eax, 0x71
cmp dword [ecx + 0x4695c0], 0
jne 0x4041d9
mov edx, 4
imul eax, edx, 0x51
cmp dword [eax + 0x4695c0], 0
je 0x40423a
mov dword [ebp - 0xc], 0x467428
push 0x46742c
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004181c0
add esp, 8
mov dword [0x4683b4], eax
cmp dword [0x4683b4], 0
je 0x40421d
mov edx, dword [0x4683b4]
push edx
call dword [0x45e00c]
add esp, 4
mov eax, dword [0x4683b4]
push eax
call fcn.00417610
add esp, 4
mov ecx, 4
imul edx, ecx, 0x51
cmp dword [edx + 0x4695c0], 0
je 0x404238
push 0
call fcn.00404d60
add esp, 4
jmp 0x4042b0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x4042a1
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x40429f
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x467430
mov eax, dword [ebp - 0x10]
push eax
call fcn.004181c0
add esp, 8
mov dword [0x4683b4], eax
cmp dword [0x4683b4], 0
je 0x40429d
mov ecx, dword [0x4683b4]
push ecx
call dword [0x45e00c]
add esp, 4
mov edx, dword [0x4683b4]
push edx
call fcn.00417610
add esp, 4
jmp 0x404242
jmp 0x4042b0
mov eax, dword [0x4683b4]
push eax
call dword [0x45e00c]
add esp, 4
mov ecx, dword [0x4683b0]
push ecx
call fcn.00417ea0
add esp, 4
mov edx, dword [0x4683b0]
push edx
call fcn.00417610
add esp, 4
push 0
call fcn.00417250
mov esp, ebp
pop ebp
ret
Function at 0x409230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00408e50
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409262
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x44814c]
call dword [ebp - 8]
jmp 0x40926c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x432f43
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x447a30
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x468870], 1
jge 0x447a9f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x447a75
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x447a75
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x447a52
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x447a8b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x447a92
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x447b8f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x447b60
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x447b55
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x447b49
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x447b50
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x447b8f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x447b8a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x447b73
mov eax, dword [ebx + 8]
jmp 0x447b8f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x447b81
xor eax, eax
jmp 0x447b8f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x447abf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401e64
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4845ac], 0
jne 0x401e81
call fcn.00401778
test al, al
je 0x401e89
cmp ebx, 0x7ffffff8
jle 0x401e93
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x401fe7
xor ecx, ecx
push ebp
push 0x401fe0
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x484035], 0
je 0x401eb4
push 0x4845b4
call sub.KERNEL32.DLL_LocalAlloc
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x401ec4
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x401f63
mov eax, ebx
test eax, eax
jns 0x401ed9
add eax, 3
sar eax, 2
mov edx, dword [0x48460c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x401f63
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x401f14
mov eax, ebx
test eax, eax
jns 0x401f03
add eax, 3
sar eax, 2
mov ecx, dword [0x48460c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x401f3a
mov ecx, ebx
test ecx, ecx
jns 0x401f1d
add ecx, 3
sar ecx, 2
mov edi, dword [0x48460c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x48459c]
sub ebx, 4
add dword [0x4845a0], ebx
call fcn.00402a94
jmp 0x401fe7
cmp ebx, dword [0x484604]
jg 0x401fb5
sub dword [0x484604], ebx
cmp dword [0x484604], 0xc
jge 0x401f87
add ebx, dword [0x484604]
xor eax, eax
mov dword [0x484604], eax
mov eax, dword [0x484608]
add dword [0x484608], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x48459c]
sub ebx, 4
add dword [0x4845a0], ebx
call fcn.00402a94
jmp 0x401fe7
mov eax, ebx
call fcn.00401d70
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401fe7
cmp byte [0x484035], 0
je 0x401fdf
push 0x4845b4
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x401ff4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4845b0], eax
cmp byte [0x4845ac], 0
jne 0x40202c
call fcn.00401778
test al, al
jne 0x40202c
mov dword [0x4845b0], 8
mov dword [ebp - 4], 8
jmp 0x40218d
xor ecx, ecx
push ebp
push 0x402186
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x484035], 0
je 0x40204d
push 0x4845b4
call sub.KERNEL32.DLL_LocalAlloc
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x402068
mov dword [0x4845b0], 9
jmp 0x40215d
dec dword [0x48459c]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4845a0], eax
test bl, 1
je 0x4020c8
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402098
test edx, 0x80000003
je 0x4020a7
mov dword [0x4845b0], 0xa
jmp 0x40215d
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x4020bf
mov dword [0x4845b0], 0xa
jmp 0x40215d
add ebx, edx
mov esi, eax
call fcn.0040191c
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x484608]
jne 0x402108
sub dword [0x484608], ebx
add dword [0x484604], ebx
cmp dword [0x484604], 0x3c00
jle 0x4020f9
call fcn.00401c0c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00402a94
jmp 0x40218d
mov edx, dword [eax]
test dl, 2
je 0x40212b
and edx, 0x7ffffffc
cmp edx, 4
jge 0x402126
mov dword [0x4845b0], 0xb
jmp 0x40215d
or dword [eax], 1
jmp 0x402154
mov eax, edi
cmp dword [eax + 4], 0
je 0x40213e
cmp dword [eax], 0
je 0x40213e
cmp dword [eax + 8], 0xc
jge 0x40214a
mov dword [0x4845b0], 0xb
jmp 0x40215d
mov edx, dword [eax + 8]
add ebx, edx
call fcn.0040191c
mov edx, ebx
mov eax, esi
call fcn.00401b84
mov eax, dword [0x4845b0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40218d
cmp byte [0x484035], 0
je 0x402185
push 0x4845b4
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4026e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48200c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402778
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402758
xor eax, eax
push ebp
push 0x402751
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 0x402794
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 0x402758
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48200c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48200c], ax
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x484034], 0
je 0x402e21
cmp word [0x484208], 0xd7b2
jne 0x402de9
cmp dword [0x484210], 0
jbe 0x402de9
mov eax, 0x484204
call dword [0x484220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x482054
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402e48
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_GetCommandLineA
pop edx
ret
cmp byte [0x482018], 0
jne 0x402e3d
push 0
push 0x48204c
push 0x482054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402e4c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x484620
mov esi, section.DATA
mov edi, 0x484030
cmp byte [ebx + 0x28], 0
jne 0x402e7b
cmp dword [edi], 0
je 0x402e7b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x402e6a
cmp dword [0x482004], 0
je 0x402e95
call fcn.00402d34
call fcn.00402dc0
xor eax, eax
mov dword [0x482004], eax
cmp byte [ebx + 0x28], 2
jne 0x402ea5
cmp dword [esi], 0
jne 0x402ea5
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00402c34
cmp byte [ebx + 0x28], 1
jbe 0x402eb5
cmp dword [esi], 0
je 0x402ed6
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x402ed6
call fcn.00403210
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x402ed6
test eax, eax
je 0x402ed6
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
call fcn.00402c0c
cmp byte [ebx + 0x28], 1
jne 0x402ee4
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x402eef
call fcn.00402d90
cmp dword [ebx], 0
jne 0x402f0b
cmp dword [0x484018], 0
je 0x402f03
call dword [0x484018]
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x402e95

Function at 0x403664
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004030dc
xor eax, eax
push ebp
push 0x4036df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403048
mov esi, eax
test esi, esi
jle 0x4036be
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
call fcn.0040365c
xor eax, edi
push eax
lea eax, [ebp - 4]
call fcn.00403130
pop edx
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x40369e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00402f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036e6
lea eax, [ebp - 4]
call fcn.00402f3c
ret

Function at 0x4036f0
Capabilities:
Encode data using xor

Disassembly:
inc edx
test edx, edx
jl 0x4036fc
inc edx
xor byte [eax], cl
inc eax
dec edx
jne 0x4036f6
ret
Function at 0xdab87c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdab886
pushal
call 0xdab88c
pop ebp
sub ebp, 0x10
sub ebp, 0x9ab87c
jmp 0xdab8a2
mov eax, 0x9ab87c
add eax, ebp
add eax, 0x4c
mov ecx, 0x58d
mov edx, 0xc2d4f7a1
xor byte [eax], dl
inc eax
dec ecx
jne 0xdab8b9
jmp 0xdab8cc
sub ch, byte [edx + ebp + 0x28]
popfd
mov eax, dword [0x6020a1a1]
pop ecx
mov eax, dword [0x6ca2a1a1]
sbb dword [ebp + 0x1ba1a1a1], esp
mov dword [ecx + 0x4356a1a1], esp
mov byte [0xad202a69], al
mov eax, dword [0x64a2a1a1]
int1
int1
leave
test eax, 0xc9a181c2
aad 0xf4
invalid