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

Disassembly:
push 0xffffffffffffffff
push 0x5b7490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00577870
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005778f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005778f0
lea ecx, [esi + 0xc]
call fcn.005a4f10
lea ecx, [esi + 0x10]
call fcn.005a4f10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0057a120
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0057a120
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0057a120
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005a4f85
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005a4f85
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x578968
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b76b8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x578978
call fcn.00578e90
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x578a5b
cmp byte [edi], 0
je 0x578a5b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x57899d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00577690
test eax, eax
jne 0x5789bd
push 0xb7ccf0
lea ecx, [esi + 0x38]
call fcn.005a50c2
jmp 0x578a5b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.005776e0
test eax, eax
jne 0x5789ec
mov ecx, esi
call fcn.005777e0
push edi
add esi, 0x38
push 0xb7cccc
push esi
call fcn.005a1fb5
add esp, 0xc
jmp 0x578a5b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00579710
test eax, eax
je 0x578a54
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00578b30
test eax, eax
jne 0x578a70
push edi
lea eax, [esi + 0x38]
push 0xb7cca8
push eax
call fcn.005a1fb5
add esp, 0xc
mov ecx, esi
call fcn.00578e90
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x578b18
mov ecx, dword [0xb829e8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.005a1fb5
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00577790
test eax, eax
jne 0x578ada
push 0xb7cc8c
lea ecx, [esi + 0x38]
call fcn.005a50c2
jmp 0x578aea
push 0xfa
mov ecx, esi
call fcn.00579710
test eax, eax
jne 0x578b07
mov ecx, esi
call fcn.00578e90
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005a4f85
jmp 0x578a5b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005a4f85
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x57d320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xbd9ae4]
xor edx, edx
cmp eax, edx
jne 0x57d346
xor eax, eax
mov byte [eax + 0xbd99e4], al
inc eax
cmp eax, 0x100
jl 0x57d32e
mov dword [0xbd9ae4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xbd99e4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x57d3d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x57d3aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x57d378
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x57d450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x57d4a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x57d48a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x583e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b7a2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00584780
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xb5423c
call fcn.005a4cc6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x583ef3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005a4cc6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x583eec
push 0
mov ecx, eax
call fcn.0057af60
mov dword [esi + 0xc], eax
jmp 0x583ef5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x583ef5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5a7365
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5a739d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005a53e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005a53b8
jmp 0x5a73a9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5a8b63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5a8ba5
call fcn.005af046
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5a8ba5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5a8b9c
xor eax, eax
jmp 0x5a8bad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005a8bb3
pop edi
pop esi
pop ebx
ret 4

Function at 0x5af576
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 0x5af5a4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5af5c2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005af4dc
jmp 0x5af5c2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5af5c2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005af4dc
test edi, edi
mov eax, edi
jne 0x5af5ac
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4644a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x44c0ae
lea edi, [esi - 0x4b0ae]
push edi
or ebp, 0xffffffff
jmp 0x4644c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4644c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4644b8
mov eax, 1
add ebx, ebx
jne 0x4644db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4644d0
jne 0x4644ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4644d0
xor ecx, ecx
sub eax, 3
jb 0x464500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x464572
mov ebp, eax
add ebx, ebx
jne 0x46450b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x464518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46453c
inc ecx
add ebx, ebx
jne 0x464528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46451d
jne 0x464539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46451d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46455c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46454d
jmp 0x4644be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46455c
add edi, ecx
jmp 0x4644be
pop esi
mov edi, esi
mov ecx, 0xb4e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46457a
cmp byte [edi], 0x12
jne 0x46457a
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 eax, ebx
loop 0x46457f
lea edi, [esi + 0x62000]
mov eax, dword [edi]
or eax, eax
je 0x4645ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x64000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6403c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4645ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x64040]
or eax, eax
je 0x4645e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4645c9
call dword [esi + 0x64044]
popal
jmp 0x41fa4e
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401c66
pop dword [ebp - 0x24]
mov eax, 0x973a9e88
sub eax, 0x96fa8222
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x1b408907
add dword [ebp - 0x34], 0x3311bc44
mov dword [ebp - 0x30], 0x8be15ba1
sub dword [ebp - 0x30], 0x59ae0f5c
mov dword [ebp - 0x2c], 0xecf90829
sub dword [ebp - 0x2c], 0xa0acc3fb
mov dword [ebp - 0x28], 0x22250ffc
add dword [ebp - 0x28], 0xdddaf004
lea eax, [ebp - 0x34]
push eax
mov eax, 0x6faccf97
add eax, 0x909360bd
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x9028eb58
add dword [ebp - 0x34], 0xe4497dfe
mov dword [ebp - 0x30], 0x77129102
sub dword [ebp - 0x30], 0x35a62f8d
mov dword [ebp - 0x2c], 0x2a3b3fa5
sub dword [ebp - 0x2c], 0xc6cbd339
mov dword [ebp - 0x28], 0x24d0e582
add dword [ebp - 0x28], 0xdb2f1a7e
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x352f2
push 0
call eax
mov ecx, 0x197236bf
sub ecx, 0x1971f3ef
xor edx, edx
add edx, eax
mov ebx, 0xf34cc8fe
sub ebx, 0xf30c58fe
add ebx, dword [ebp - 0x24]
mov edi, 0xf852ca9f
add edi, 0x58198b14
add dword [ebp - 0x14], eax
mov esi, dword [ebx]
mov dword [ebp - 0x18], 0xc97c9bae
sub esi, edi
xor dword [ebp - 0x20], 0x8003458e
mov dword [edx], esi
add edx, 0xf7758a2b
sub edx, 0xf7758a27
add ebx, 0x17008be5
sub ebx, 0x17008be1
loop 0x401d85
add eax, 0x38647cfd
sub eax, 0x38637eea
xor ebx, ebx
add ebx, eax
add eax, 0x41970df2
sub eax, 0x41970ded
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x40f0c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40f108
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40f0d7
jmp 0x40f108
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40f0f8
pop esi
pop ebp
ret

Function at 0x40fe60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40fe95
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40febf
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40febf
test edi, edi
je 0x40fe8c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40fe8c
test edi, edi
je 0x40fec7
mov eax, edi
jmp 0x40fe8e
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40fe8e
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.004129dd
add esp, 0xc
int3
Function at 0x412a11
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonSize], eax
call fcn.0040fe60
pop ecx
mov ecx, dword [sym.TestFloatingPoint.exe_gMozillaPoisonSize]
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x412a49
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000900e
pop dword [ebp - 0x20]
mov eax, 0x1000900e
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xd90c0fd9
add dword [ebp - 0x30], 0x75463572
mov dword [ebp - 0x2c], 0xf365f466
sub dword [ebp - 0x2c], 0xc132a821
mov dword [ebp - 0x28], 0x4b4c6679
sub dword [ebp - 0x28], 0xff00224b
mov dword [ebp - 0x24], 0x4bccbd56
sub dword [ebp - 0x24], 0x4bccbd56
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x260eeb9e
sub dword [ebp - 0x30], 0xb19c8248
mov dword [ebp - 0x2c], 0x392fdc73
sub dword [ebp - 0x2c], 0xf7c37afe
mov dword [ebp - 0x28], 0x9d1fe36e
sub dword [ebp - 0x28], 0x39b07702
mov dword [ebp - 0x24], 0xa30cf10d
sub dword [ebp - 0x24], 0xa30cf10d
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xfe386ad
add eax, 0x1d195b
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3507a
push 0
call eax
mov ecx, 0x5fbfc7da
add ecx, 0xa0407a20
mov ebx, eax
mov edx, 0x1000f800
add edx, dword [ebp - 0x20]
mov edi, 0x53724f1b
sub edi, 0x44a7961c
xor dword [ebp - 4], 0x555c9f88
mov esi, dword [edx]
mov dword [ebp - 4], 0x6ff34e8
sub esi, edi
xor dword [ebp - 0x10], ebx
mov dword [ebx], esi
add dword [ebp - 0xc], edi
add ebx, 0x547cfa67
add ebx, 0xab83059d
add edx, 4
loop 0x10009120
add eax, 0xfabb
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x402af4
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.00404964
test esi, esi
jne 0x402b2a
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.00404a54
jmp 0x402b48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a8
mov edi, eax
test esi, esi
je 0x402b48
cmp dword [ebx], 0
je 0x402b48
dec esi
jmp 0x402b31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a08
Capabilities:
Query or enumerate registry value

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

Function at 0x404764
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x477048], 0
je 0x4047c5
cmp word [0x47721c], 0xd7b2
jne 0x40478d
cmp dword [0x477224], 0
jbe 0x40478d
mov eax, 0x477218
call dword [0x477234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x474074
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 0x4047ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474034], 0
jne 0x4047e1
push 0
push 0x47406c
push 0x474074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404918
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402734
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x477049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c48
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 0x405e78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ccb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ccb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d54
xor eax, eax
push ebp
push 0x405d4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a90
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 0x405d32
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405eb4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d32
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 0x405d54
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 0x405e6e
cmp byte [ebp - 0xd], 0
jne 0x405d9b
cmp byte [ebp - 0x12], 0
je 0x405e6e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405db4
dec ebx
cmp byte [ebx], 0x2e
je 0x405dc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405db3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e6e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e00
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 0x405e6e
cmp byte [ebp - 0xd], 0
je 0x405e6e
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 0x405e6e
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