joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100211e1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002115d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10021359
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10021359
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10021308
jg 0x1002123a
test eax, eax
je 0x100212fe
push 1
push 0x1000
call fcn.1001622c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10021260
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100212f5
push 0x8000
push ebx
call fcn.1002108e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002128c
jg 0x10021287
cmp ecx, 0x1000
jb 0x1002128c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10017a30
add esp, 0x10
cmp eax, 0xffffffff
je 0x100212d1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10021287
jl 0x100212b8
test ecx, ecx
jne 0x10021279
push dword [ebp - 0xc]
push ebx
call fcn.1002108e
push esi
call fcn.100161f2
add esp, 0xc
xor edi, edi
jmp 0x1002136a
cmp byte [edi + 0x24], 0
je 0x100212e8
cmp dword [edi + 0x20], 5
jne 0x100212e8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100212f3
mov edi, dword [edi + 0x18]
jmp 0x100212f5
xor edi, edi
push esi
call fcn.100161f2
pop ecx
jmp 0x1002136a
test ecx, ecx
jg 0x100212ca
jl 0x10021308
test eax, eax
jae 0x100212ca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100191ce
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002132b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100212ca
jmp 0x10021362
push ebx
call fcn.1001f167
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100212ca
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1002136a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10021367
mov edi, dword [edi + 0x18]
jmp 0x1002136a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100191ce
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10022660
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002268d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002268d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x42165e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x42166d
pop dword [ebp - 8]
mov eax, 0x42166d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xc57fc51b
add dword [ebp - 0x18], 0x88d28030
mov dword [ebp - 0x14], 0x57cd547e
add dword [ebp - 0x14], 0xda65f7c7
mov dword [ebp - 0x10], 0xafa88f48
add dword [ebp - 0x10], 0x9ca3b4e6
mov dword [ebp - 0xc], 0x2b9ff836
sub dword [ebp - 0xc], 0x2b9ff836
lea eax, [ebp - 0x18]
push eax
mov eax, 0x59c5f2e1
sub eax, 0x5983c26d
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x84d53667
sub dword [ebp - 0x18], 0x1062cd11
mov dword [ebp - 0x14], 0xfe68ab6b
add dword [ebp - 0x14], 0x4303b60a
mov dword [ebp - 0x10], 0x8be271e2
add dword [ebp - 0x10], 0xd78cfa8a
mov dword [ebp - 0xc], 0x90e34577
sub dword [ebp - 0xc], 0x90e34577
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xe6e86cf
sub eax, 0xe2c55ab
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x40f95
push 0
call eax
mov ecx, 0x54ee
mov edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 8]
mov esi, 0xcf08057f
add dword [ebp - 4], edi
mov edx, dword [ebx]
mov dword [ebp - 4], 0xc18240f5
xor edx, esi
mov dword [edi], edx
add edi, 0xdb2cf86
add edi, 0xf24d307e
add ebx, 0xf3efaa4a
sub ebx, 0xf3efaa46
loop 0x421778
add eax, 0xf56cc1da
add eax, 0xa9484b1
mov ebx, eax
add eax, 5
mov ecx, 0xef430070
add ecx, 0x10fcff90
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x447ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b000]
push edi
jmp 0x447eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x447ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447ee0
mov eax, 1
add ebx, ebx
jne 0x447f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x447f14
jne 0x447f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447f33
dec eax
add ebx, ebx
jne 0x447f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x447ef8
add ebx, ebx
jne 0x447f2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x447f85
xor ecx, ecx
sub eax, 3
jb 0x447f4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x447fba
sar eax, 1
mov ebp, eax
jmp 0x447f56
add ebx, ebx
jne 0x447f56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447f24
inc ecx
add ebx, ebx
jne 0x447f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x447f24
add ebx, ebx
jne 0x447f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x447f66
jne 0x447f82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x447f66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x447fa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x447f96
jmp 0x447ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x447fa4
add edi, ecx
jmp 0x447ee6
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x447fc2
cmp byte [edi], 9
jne 0x447fc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x447fc7
lea edi, [esi + 0x45000]
mov eax, dword [edi]
or eax, eax
je 0x44803f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x711b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x71294]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x447ff4
mov ecx, edi
jns 0x448023
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7129c]
or eax, eax
je 0x448039
mov dword [ebx], eax
add ebx, 4
jmp 0x448011
call dword [esi + 0x71298]
mov ebp, dword [esi + 0x712a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x448073
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x416666
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x416675
pop dword [ebp - 0x1c]
mov eax, 0xab0cb07d
sub eax, 0xaacb4a08
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x27763123
add dword [ebp - 0x2c], 0x26dc1428
mov dword [ebp - 0x28], 0xbf83c89a
sub dword [ebp - 0x28], 0x8d507c55
mov dword [ebp - 0x24], 0x9ff30978
add dword [ebp - 0x24], 0xac593ab6
mov dword [ebp - 0x20], 0x3796a0af
sub dword [ebp - 0x20], 0x3796a0af
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x2beed366
sub eax, 0x2baca2f2
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x4a6f16bb
sub dword [ebp - 0x2c], 0xd5fcad65
mov dword [ebp - 0x28], 0x6db5c13b
sub dword [ebp - 0x28], 0x2c495fc6
mov dword [ebp - 0x24], 0xd5d5a1a2
add dword [ebp - 0x24], 0x8d99caca
mov dword [ebp - 0x20], 0x223a71d3
add dword [ebp - 0x20], 0xddc58e2d
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x917d2dc8
add eax, 0x6ec5035c
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d5fd
push 0
call eax
mov ecx, 0x21882ea4
add ecx, 0xde781819
mov edx, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0x1c]
mov esi, 0x8e44eb3e
add esi, 0x410da4c5
xor dword [ebp - 4], edi
mov edi, dword [ebx]
add dword [ebp - 0x14], edx
xor edi, esi
xor dword [ebp - 0x18], edi
mov dword [edx], edi
add dword [ebp - 0x10], eax
add edx, 0xed82eb60
sub edx, 0xed82eb5c
add ebx, 0x1e6de83f
add ebx, 0xe19217c5
loop 0x416791
add eax, 0xe7c46ca3
sub eax, 0xe7c35edc
xor ebx, ebx
add ebx, eax
add eax, 0x394be0fd
sub eax, 0x394be0f8
mov ecx, 0x675a8d33
sub ecx, 0x671a8d33
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40593c
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov edx, dword [0x408604]
test edx, edx
mov eax, dword [0x408318]
mov dword [ebp + 0x2a4], eax
je 0x405882
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x80], 0xc0000409
call edx
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0040593c
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x408318]
jne 0x405945
ret
jmp 0x40582d

Function at 0x405f20
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x408318]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xa
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x405f56
mov ax, 9
jmp 0x405f84
movzx ecx, word [ebp - 0x210]
movzx edx, word [0x4012f8]
cmp ecx, edx
je 0x405f80
movzx eax, word [ebp - 0x210]
movzx ecx, word [0x4012fc]
cmp eax, ecx
je 0x405f80
mov ax, 9
jmp 0x405f84
mov ax, 1
mov ecx, dword [ebp - 4]
call fcn.0040593c
mov esp, ebp
pop ebp
ret

Function at 0x406390
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x408318]
mov dword [ebp - 0x1c], eax
push edi
mov dword [ebp - 0x10], 0x20019
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x18], 0
mov word [ebp - 0x220], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 0xc], 0
je 0x4063f4
cmp dword [ebp + 0x10], 0
jne 0x4063f8
xor eax, eax
jmp 0x406474
mov eax, dword [ebp + 8]
push eax
push 0x401354
push 0x4019d8
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406471
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406467
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.0040593c
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406ab0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x406ae1
xor eax, eax
jmp 0x406b0d
mov word [ebp - 4], 0xfeff
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x406f30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x80c
mov eax, dword [0x408318]
mov dword [esp + 0x808], eax
lea eax, [esp]
push eax
push 1
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
je 0x406f72
mov eax, 8
mov ecx, dword [esp + 0x808]
call fcn.0040593c
add esp, 0x80c
ret
mov edx, dword [esp + 0x810]
lea ecx, [esp + 4]
push ecx
push edx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x406fb4
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 2
mov ecx, dword [esp + 0x808]
call fcn.0040593c
add esp, 0x80c
ret
mov eax, dword [esp + 4]
push esi
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp + 8]
mov esi, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
pop esi
je 0x406f9c
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x818]
inc eax
cmp ecx, eax
jge 0x407014
mov eax, 0xea
mov ecx, dword [esp + 0x808]
call fcn.0040593c
add esp, 0x80c
ret
mov ecx, dword [esp + 0x814]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x808]
xor eax, eax
call fcn.0040593c
add esp, 0x80c
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403658
Capabilities:
Query or enumerate registry value

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

Function at 0x4044e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x537048], 0
je 0x404545
cmp word [0x53721c], 0xd7b2
jne 0x40450d
cmp dword [0x537224], 0
jbe 0x40450d
mov eax, 0x537218
call dword [0x537234]
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 0x40456c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x458030], 0
jne 0x404561
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a00
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 0x405c30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a83
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a83
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b0c
xor eax, eax
push ebp
push 0x405b05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040583c
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 0x405aea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c6c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405aea
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 0x405b0c
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 0x405c26
cmp byte [ebp - 0xd], 0
jne 0x405b53
cmp byte [ebp - 0x12], 0
je 0x405c26
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405b6c
dec ebx
cmp byte [ebx], 0x2e
je 0x405b7b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405b6b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c26
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405bb8
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 0x405c26
cmp byte [ebp - 0xd], 0
je 0x405c26
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 0x405c26
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 0x407fe4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408074
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408074
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408027
test edx, 3
jne 0x408016
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408021
jmp 0x408027
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408027
cmp dword [ecx - 8], 1
je 0x408031
mov edx, ebx
or edx, 3
call fcn.00404db0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408043
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404664

Function at 0x408080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408110
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408110
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080c3
test edx, 3
jne 0x4080b2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080bd
jmp 0x4080c3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080c3
cmp dword [ecx - 8], 1
je 0x4080cd
mov edx, ebx
or edx, 3
call fcn.00404db0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4080df
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404664

Function at 0x40b2f4
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 0x40b32d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404754
jmp 0x40b336
mov eax, ebx
mov edx, esi
call fcn.004046b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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