joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cf70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [0x485400]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x45cfb3
mov eax, dword [esi]
jmp 0x45cfb5
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x45cfd6
push 0x7fc5b0
push edi
push eax
call fcn.00472b21
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x45d036
lea eax, [esi + 8]
push eax
call dword [0x485258]
test eax, eax
jne 0x45d036
mov eax, dword [esi]
test eax, eax
je 0x45d01d
push eax
call dword [0x4853dc]
mov eax, dword [esi + 4]
test eax, eax
je 0x45d02d
push eax
call fcn.0047514d
add esp, 4
push esi
call fcn.0047514d
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x45f3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x45f525
cmp di, 0x801
ja 0x45f525
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x45f525
cmp bx, 0xc
ja 0x45f525
mov al, byte [esp + 0x30]
test al, al
je 0x45f424
push edi
call fcn.0045f960
add esp, 4
cmp ax, bx
je 0x45f424
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.0045f530
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.0045f350
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x45f525
test ebx, ebx
jne 0x45f4b9
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x45f51b
test al, al
je 0x45f4ac
push 0xffffffffffffffe1
jmp 0x45f4ae
push 0x1f
push ebp
push edi
push esi
call fcn.0045f300
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.0045f300
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.0045f530
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.0045f350
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x45f486
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x460bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x484008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x81d2b8
lea ecx, [esp + 4]
call fcn.00475451
push 0x80318c
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.00475451
push 0x803188
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.00475451
push 0x803184
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.00475451
push 0x803180
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.00475451
push 0x80317c
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.00475451
push 0x803178
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.00475451
push 0x803174
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.00475451
push 0x803170
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.00475451
push 0x80316c
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.00475451
push 0x803168
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.00475451
push 0x803164
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.00475451
push 0x803160
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.00475451
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x460ce0
cmp eax, 0xc
jle 0x460ce0
mov ecx, dword [esp + 0x48]
push 0x81d2b8
call fcn.00475520
jmp 0x460cee
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.004754d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.004753e3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.004753e3
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.004753e3
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.004753e3
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.004753e3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.004753e3
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.004753e3
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.004753e3
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.004753e3
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.004753e3
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.004753e3
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.004753e3
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004753e3
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x10005963
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10005972
pop dword [ebp - 0x4c]
mov eax, 0xbf47ad3d
sub eax, 0xaf4753cb
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xd0391242
sub dword [ebp - 0x5c], 0x81e6ccf7
mov dword [ebp - 0x58], 0xa4e86517
sub dword [ebp - 0x58], 0x72b518d2
mov dword [ebp - 0x54], 0x6036f845
sub dword [ebp - 0x54], 0x13eab417
mov dword [ebp - 0x50], 0x1189e939
sub dword [ebp - 0x50], 0x1189e939
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x55947800
add dword [ebp - 0x5c], 0x1eddf156
mov dword [ebp - 0x58], 0xae699b9a
sub dword [ebp - 0x58], 0x6cfd3a25
mov dword [ebp - 0x54], 0x94f47c8a
add dword [ebp - 0x54], 0xce7aefe2
mov dword [ebp - 0x50], 0xa2b8c66b
add dword [ebp - 0x50], 0x5d473995
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e723
push 0
call eax
mov ecx, 0xca1dddd
add ecx, 0xf35e6c95
xor ebx, ebx
add ebx, eax
mov esi, 0x100b9000
add esi, dword [ebp - 0x4c]
mov edx, 0x70a91743
sub edx, 0x24eb111b
sub dword [ebp - 0x44], 0xa8337ab3
mov edi, dword [esi]
sub dword [ebp - 0x10], 0xd0056383
xor edi, edx
mov dword [ebp - 0xc], 0xa24452fe
mov dword [ebx], edi
sub dword [ebp - 0x14], 0xe852e484
add ebx, 0x1075711c
sub ebx, 0x10757118
add esi, 0x745ba6b
sub esi, 0x745ba67
loop 0x10005a86
add eax, 0xfcad77a0
add eax, 0x353a4fb
mov ebx, eax
add eax, 0x5f9befe8
sub eax, 0x5f9befe3
mov ecx, 0xfb95a085
sub ecx, 0xeb95a085
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x403c50
Capabilities:
Get disk size

Disassembly:
lea eax, [ecx + 0x18]
push eax
mov eax, dword [esp + 8]
lea edx, [ecx + 0x10]
push edx
add ecx, 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
setne al
ret 4

Function at 0x403e70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x110], eax
mov ecx, dword [0x449208]
push esi
mov esi, dword [esp + 0x11c]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f07
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x43d2f8
push edx
mov dword [esp + 0x24], 2
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403efc
mov eax, dword [esp + 0x120]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00423763
add esp, 0x114
ret 8

Function at 0x4040b0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x4048f0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43933b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x28]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404940
mov ecx, dword [0x43d4e0]
mov edx, dword [0x43d4e4]
mov dword [eax], ecx
mov ecx, dword [0x43d4e8]
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0
push edx
mov dword [eax + 8], ecx
call fcn.00425138
add esp, 8
test eax, eax
jne 0x404a16
lea edi, [esp + 0x28]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404980
mov eax, dword [0x43d4dc]
lea ecx, [esp + 0x10]
mov dword [edi], eax
call fcn.0041def5
push 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0
call fcn.0041df8a
test eax, eax
je 0x404a02
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ecx]
lea ecx, [esp + 0x10]
call fcn.0041dbe2
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041e138
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4049c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.0041df1b
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00423763
add esp, 0x130
ret

Function at 0x404a40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ad6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 8
ret
Function at 0x435407
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042cd65
and dword [ebp - 4], 0
cmp dword [0x44dd68], 0
mov ebx, eax
jne 0x4354b8
push 0x441bc8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x435569
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x441bbc
push edi
call esi
test eax, eax
je 0x435569
push eax
call fcn.0042ccf3
mov dword [esp], 0x441bac
push edi
mov dword [0x44dd68], eax
call esi
push eax
call fcn.0042ccf3
mov dword [esp], 0x441b98
push edi
mov dword [0x44dd6c], eax
call esi
push eax
call fcn.0042ccf3
mov dword [esp], 0x441b7c
push edi
mov dword [0x44dd70], eax
call esi
push eax
call fcn.0042ccf3
pop ecx
mov dword [0x44dd78], eax
test eax, eax
je 0x4354b8
push 0x441b64
push edi
call esi
push eax
call fcn.0042ccf3
pop ecx
mov dword [0x44dd74], eax
mov eax, dword [0x44dd74]
cmp eax, ebx
je 0x435510
cmp dword [0x44dd78], ebx
je 0x435510
push eax
call fcn.0042cd6e
push dword [0x44dd78]
mov esi, eax
call fcn.0042cd6e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435510
test edi, edi
je 0x435510
call esi
test eax, eax
je 0x435507
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435507
test byte [ebp - 0xc], 1
jne 0x435510
or dword [ebp + 0x10], 0x200000
jmp 0x435549
mov eax, dword [0x44dd6c]
cmp eax, ebx
je 0x435549
push eax
call fcn.0042cd6e
pop ecx
test eax, eax
je 0x435549
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x435549
mov eax, dword [0x44dd70]
cmp eax, ebx
je 0x435549
push eax
call fcn.0042cd6e
pop ecx
test eax, eax
je 0x435549
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dd68]
call fcn.0042cd6e
pop ecx
test eax, eax
je 0x435569
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43556b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030c8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403104
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403124
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004053a0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033bc
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.00405130
test esi, esi
jne 0x4033f2
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.00405220
jmp 0x403410
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403260
mov edi, eax
test esi, esi
je 0x403410
cmp dword [ebx], 0
je 0x403410
dec esi
jmp 0x4033f9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404048
Capabilities:
Query or enumerate registry value

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

Function at 0x404efc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c704c], 0
je 0x404f5d
cmp word [0x4c7220], 0xd7b2
jne 0x404f25
cmp dword [0x4c7228], 0
jbe 0x404f25
mov eax, 0x4c721c
call dword [0x4c7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x404f84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c102c], 0
jne 0x404f79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4050b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c1034], 0
je 0x4050da
mov edx, esi
mov eax, ebx
call dword [0x4c1034]
jmp 0x4050e9
mov eax, 8
call fcn.00402ec0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40507c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40681c
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 0x406a4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40689f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40689f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406928
xor eax, eax
push ebp
push 0x406921
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406658
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 0x406906
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a88
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406906
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 0x406928
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 0x406a42
cmp byte [ebp - 0xd], 0
jne 0x40696f
cmp byte [ebp - 0x12], 0
je 0x406a42
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406988
dec ebx
cmp byte [ebx], 0x2e
je 0x406997
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406987
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a42
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4069d4
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 0x406a42
cmp byte [ebp - 0xd], 0
je 0x406a42
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 0x406a42
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
Function at 0x40946c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4094be
test eax, edx
je 0x4094c1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409481
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4094a7
add ecx, 4
js 0x409497
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4094a4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4094cd
test edx, edx
jne 0x409474
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409f1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004055c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f3a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x409f5b
cmp ebx, 3
je 0x409f5b
cmp ebx, 0x7b
je 0x409f5b
mov eax, esi
call fcn.00409edc
test al, al
jne 0x409f5f
xor eax, eax
jmp 0x409f61
mov al, 1
pop esi
pop ebx
ret

Function at 0x409f64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f7d
test al, 0x10
jne 0x409f81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cfe8
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 0x40d021
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405220
jmp 0x40d02a
mov eax, ebx
mov edx, esi
call fcn.00405184
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d034
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 0x40d056
movzx eax, byte [esp]
jmp 0x40d058
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret