joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402930
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
push 0
call fcn.0042236e
push eax
call fcn.00422689
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.00422693
cdq
mov ecx, 0x2710
idiv ecx
mov esi, edx
call fcn.00422693
cdq
mov ecx, 0x3e8
idiv ecx
mov edi, edx
call fcn.00422693
cdq
mov ecx, 0xa
idiv ecx
mov ebx, edx
lea edx, [esp + 0x28]
push ebx
push 0x29a
push edi
push esi
push str._04i_03i_03i_01i000
push edx
call fcn.00422215
lea eax, [esp + 0x54]
push eax
call fcn.00402f90
push 0x24
lea ecx, [esp + 0x5c]
push 0x42e2e4
push ecx
call fcn.00402fc0
lea edx, [esp + 0x50]
push 0xb
lea eax, [esp + 0x68]
push edx
push eax
call fcn.00402fc0
push 0x24
lea ecx, [esp + 0x74]
push 0x42e2e4
push ecx
call fcn.00402fc0
add esp, 0x48
lea edx, [esp + 0x20]
lea eax, [esp + 0x34]
push 0xb
push edx
push eax
call fcn.00402fc0
push 0x24
lea ecx, [esp + 0x44]
push 0x42e2e4
push ecx
call fcn.00402fc0
lea edx, [esp + 0x4c]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00403790
add esp, 0x20
xor ebp, ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dl, byte [esp + ecx + 0x13]
mov al, byte [esp + ecx + 0x12]
shl edx, 1
xor edx, eax
xor eax, eax
mov al, byte [esp + ecx + 0x10]
add ecx, 4
shl edx, 1
xor edx, eax
xor eax, eax
mov al, byte [esp + ecx + 0xd]
xor edx, eax
xor ebp, edx
cmp ecx, 0x10
jl 0x402a16
mov eax, ebp
xor edx, edx
mov ecx, 0x3e8
div ecx
lea eax, [esp + 0x20]
mov ebp, edx
xor edx, edx
mov dword [esp + 0x20], edx
push ebp
mov dword [esp + 0x28], edx
push ebx
push 0x29a
mov dword [esp + 0x34], edx
push edi
push esi
mov dword [esp + 0x40], edx
push str._04i__03i__03i__01i_03i
push eax
mov dword [esp + 0x4c], edx
call fcn.00422215
mov ecx, dword [esp + 0xac]
push ebp
push ebx
push 0x29a
push edi
push esi
push str._04i_03i_03i_01i_03i
push ecx
call fcn.00422215
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x38
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x402f90
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40eff3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
mov esi, 0x100
push esi
push 0
push eax
call fcn.004247c0
add esp, 0xc
lea eax, [ebp - 0x100]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x100], 0
jne 0x40f032
xor eax, eax
jmp 0x40f085
lea eax, [ebp - 0x100]
push eax
call fcn.00422b80
add esp, 4
inc eax
push eax
call fcn.00422940
add esp, 4
mov esi, eax
call fcn.0041ffb6
cmp eax, 1
lea eax, [ebp - 0x100]
push eax
jne 0x40f07a
call fcn.00422b80
add esp, 4
inc eax
lea ecx, [ebp - 0x100]
push eax
push esi
push ecx
call fcn.0040ef9d
add esp, 0xc
jmp 0x40f083
push esi
call fcn.00422a90
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a710
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.0041a610
or al, al
jne 0x41a89a
test byte [edi + 0x1c], 4
je 0x41a773
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x41a800
mov dword [ebx + 0xa8], 0
jmp 0x41a80c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x41a820
mov dword [ebx + 0xac], 0
jmp 0x41a829
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x41a840
cmp word [ebp + 0xe], 0xffff
jne 0x41a840
or dword [ebx + 0x2c], 8
jmp 0x41a846
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x41a780
push esi
call fcn.0041a680
push esi
call fcn.0041a5c0
push esi
call fcn.0041a580
mov eax, dword [esi + 0x10]
push eax
call fcn.0041ba40
mov word [esi + 0xc], ax
or ax, ax
je 0x41a890
lea eax, [esi + 4]
push eax
call fcn.0041b890
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.0041a550
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x41c990
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.0041a8b0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0041c4c0
or al, al
jne 0x41ca1a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0041d2b0
or al, al
jne 0x41ca1a
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0041d170
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0041d300
or di, di
je 0x41ca1a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x41cac0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.0041a8b0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.0041a8b0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0041c4c0
or al, al
jne 0x41cba3
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0041d2b0
mov bx, ax
or bl, bl
jne 0x41cb72
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0041d1c0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0041d300
push esi
call fcn.0041a9c0
cmp ax, 0xd
jne 0x41cb82
mov bx, 0xd
cmp bl, 0xd
je 0x41cb8d
cmp bx, 3
jne 0x41cba0
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x41cb12
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x41e940
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41e9d6
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jb 0x41e9b3
cmp eax, 3
jbe 0x41e9cb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41e9c0
push eax
call sub.KERNEL32.DLL_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x41e9f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.0041e8e0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.DLL_WriteFile
mov ebx, eax
or ebx, ebx
je 0x41ea40
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.DLL_ReadFile
mov ebx, eax
push esi
call fcn.0041e8a0
or ebx, ebx
je 0x41ea52
cmp word [esi + 6], 0xffff
jne 0x41ea58
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x41eb80
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.0041eb40
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41ebf0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jb 0x41ebc9
cmp eax, 3
jbe 0x41ebe1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ebd6
push eax
call sub.KERNEL32.DLL_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x41ec10
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.0041e8e0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ReadFile
mov edi, eax
push esi
call fcn.0041e8a0
cmp edi, 1
jne 0x41ec55
cmp word [esi + 6], 0xffff
jne 0x41ec5b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x41ed40
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileIntA
add esp, 0x24
ret

Function at 0x41fc00
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x41fc11
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.00419700
mov esi, eax
cmp word [esi], 0x7242
je 0x41fc28
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x41fc40
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xd
mov ax, word [esp + 0x10]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov al, byte [esp + 0x18]
mov byte [esi + 0x38], al
push esi
call fcn.0041e270
mov ax, word [esi + 6]
push eax
call fcn.0041f0c0
cmp ax, 0xc
jne 0x41fc86
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.0041f0c0
pop esi
ret 0x14
Function at 0x42802e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44f050
cmp edx, dword [eax]
je 0x428050
add eax, 8
inc ecx
cmp eax, 0x44f0e0
jl 0x428041
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44f050]
jne 0x42817e
mov eax, dword [0x4569a0]
cmp eax, 1
je 0x428158
test eax, eax
jne 0x428081
cmp dword [0x44e920], 1
je 0x428158
cmp edx, 0xfc
je 0x42817e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4280b8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422a90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00422b80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4280fb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00422b80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42eac4
push edi
call fcn.00422270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422a90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422aa0
lea eax, [ebp - 0xa0]
push 0x42eaa4
push eax
call fcn.00422aa0
push dword [esi + 0x44f054]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422aa0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042becf
add esp, 0x2c
pop edi
jmp 0x42817e
lea eax, [ebp + 8]
lea esi, [esi + 0x44f054]
push 0
push eax
push dword [esi]
call fcn.00422b80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x4033d4
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.004058c8
test esi, esi
jne 0x40340a
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.004059b8
jmp 0x403428
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032d8
mov edi, eax
test esi, esi
je 0x403428
cmp dword [ebx], 0
je 0x403428
dec esi
jmp 0x403411
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403460
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x51a008], 0x8088405
inc edx
mov dword [ebx + 0x51a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4046fc
Capabilities:
Query or enumerate registry value

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

Function at 0x405674
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52204c], 0
je 0x4056d5
cmp word [0x522220], 0xd7b2
jne 0x40569d
cmp dword [0x522228], 0
jbe 0x40569d
mov eax, 0x52221c
call dword [0x522238]
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 0x4056fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51a030], 0
jne 0x4056f1
push 0
push 0x51a788
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40584c
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 [0x51a038], 0
je 0x405872
mov edx, esi
mov eax, ebx
call dword [0x51a038]
jmp 0x405881
mov eax, 8
call fcn.00402fdc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405814
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 0x4075c4
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 0x4077f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407647
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4077f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407647
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407810
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4076d0
xor eax, eax
push ebp
push 0x4076c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407400
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 0x4076ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407830
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4076ae
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 0x4076d0
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 0x4077ea
cmp byte [ebp - 0xd], 0
jne 0x407717
cmp byte [ebp - 0x12], 0
je 0x4077ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407730
dec ebx
cmp byte [ebx], 0x2e
je 0x40773f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40772f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4077ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40777c
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 0x4077ea
cmp byte [ebp - 0xd], 0
je 0x4077ea
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 0x4077ea
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 0x40a2e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a336
test eax, edx
je 0x40a339
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a2f9
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 0x40a31f
add ecx, 4
js 0x40a30f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a31c
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 0x40a345
test edx, edx
jne 0x40a2ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405d58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b61a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40b63b
cmp ebx, 3
je 0x40b63b
cmp ebx, 0x7b
je 0x40b63b
mov eax, esi
call fcn.0040b5bc
test al, al
jne 0x40b63f
xor eax, eax
jmp 0x40b641
mov al, 1
pop esi
pop ebx
ret

Function at 0x40f86c
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 0x40f8a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004059b8
jmp 0x40f8ae
mov eax, ebx
mov edx, esi
call fcn.0040591c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ff6c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40fde4
mov eax, dword [0x520e98]
cmp byte [eax], 0
je 0x40ffe8
mov eax, dword [0x520a0c]
call fcn.004038cc
call fcn.00403138
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040ba90
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x410030
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41001e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x520970]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5247f8]
call fcn.004073a8
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