joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dl, byte [0x40df90]
push ebx
push esi
push edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x217]
mov byte [ebp - 0x218], dl
push 0x41
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], dl
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp._GetFullPathNameA]
and dword [ebp - 4], 0
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push 0
push eax
push 0x104
push dword [ebp + 8]
call ebx
mov edi, dword [sym.imp._lstrcatA]
mov esi, 0x40a27c
lea eax, [ebp - 0x218]
push esi
push eax
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00403f27
add esp, 0xc
mov dword [ebp + 8], eax
push eax
call dword [sym.imp._lstrlenA]
test eax, eax
je 0x40465f
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp._lstrlenA]
push dword [ebp + 8]
test eax, eax
lea eax, [ebp - 0x110]
push eax
jne 0x404612
call dword [sym.imp._lstrcpyA]
jmp 0x404614
call edi
lea eax, [ebp - 0x110]
push esi
push eax
call edi
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call ebx
lea eax, [ebp - 0x110]
push eax
call fcn.00404002
test eax, eax
pop ecx
jne 0x404657
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp._CreateDirectoryA]
mov dword [ebp - 8], eax
inc dword [ebp - 4]
jmp 0x4045ce
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404705
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp._CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404745
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp._CreateFileMappingA]
mov edi, eax
cmp edi, esi
jne 0x40474b
push ebx
call dword [sym.imp._CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
ret
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp._MapViewOfFile]
cmp eax, esi
jne 0x404769
mov esi, dword [sym.imp._CloseHandle]
push edi
call esi
push ebx
call esi
jmp 0x404745
cmp word [eax], 0x5a4d
jne 0x404745
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp._IsBadReadPtr]
test eax, eax
jne 0x404745
cmp dword [esi], 0x4550
jne 0x404745
push 1
pop eax
jmp 0x404747
Function at 0x404792
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x40eb08
mov dword [0x40e9dc], eax
call fcn.0040680e
mov dword [esp], 0x40e9e8
call fcn.0040680e
xor edi, edi
push edi
call fcn.00405b2a
cmp dword [0x40de64], edi
pop ecx
pop ecx
je 0x404819
mov esi, 0x40ea00
push esi
call fcn.00404002
test eax, eax
pop ecx
jne 0x4047ed
push esi
call fcn.00404560
test eax, eax
pop ecx
jne 0x4047ed
push str.Couldnt_create_output_directory.
call fcn.00403aa1
pop ecx
jmp 0x40485b
push edi
call fcn.00405282
pop ecx
call fcn.004061e3
cmp dword [0x40de5c], edi
je 0x404812
push 5
push edi
push edi
push esi
push str.explore
push edi
call dword [0x4070fc]
call fcn.00403a68
jmp 0x40485b
mov esi, str.Tahoma
push esi
call fcn.004040d0
test eax, eax
pop ecx
je 0x40482c
push esi
jmp 0x404831
push 0x40a414
push 0x40de70
call dword [sym.imp._lstrcpyA]
push edi
push 0x404a4d
push edi
push 0x66
push dword [0x40e9dc]
mov dword [0x40e9d4], 0xd
call dword [0x407154]
push 1
pop eax
pop edi
pop esi
ret 0x10
Function at 0x402070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
fldz
push esi
push edi
fst qword [esp + 0xc]
mov edi, dword [esp + 0x24]
fstp qword [esp + 0x14]
mov dword [esp + 8], 0
push edi
call fcn.0040b698
dec dword [esp + 0xc]
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 4
cmp eax, 0x4bae7946
je 0x4020cb
fld dword [0x423638]
fadd qword [0x41f358]
fstp dword [0x423638]
fld dword [0x423638]
fsub qword [0x41f430]
fmul qword [esp + 0xc]
fstp qword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x24]
push edi
push ebx
push esi
call fcn.0040b770
fld qword [esp + 0x24]
fsub qword [0x41f428]
add esp, 0xc
add edi, esi
mov ecx, esi
fcomp qword [0x41f420]
fnstsw ax
test ah, 0x41
jp 0x402104
mov edx, dword [esp + 0xc]
imul edx, edx, 0xe99cb69c
mov dword [esp + 0xc], edx
mov eax, dword [0x4278c4]
sub eax, 0x423004
add eax, ebx
pop ebx
cmp esi, edi
je 0x402131
mov dl, byte [eax]
xor byte [ecx], dl
fld qword [0x424b80]
fmul qword [0x423148]
inc ecx
inc eax
fstp qword [0x423148]
cmp ecx, edi
jne 0x402115
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x402140
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x150
mov eax, dword [0x4260d0]
xor eax, esp
mov dword [esp + 0x14c], eax
fldz
push ebx
fst qword [esp + 0x20]
push esi
fstp qword [esp + 0x1c]
push edi
fldz
xor ebx, ebx
fstp dword [esp + 0x14]
push 0x104
mov dword [esp + 0x1c], ebx
call fcn.0040b698
add esp, 4
push ebx
mov esi, eax
push 2
mov dword [esp + 0x24], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, ebx
je 0x402343
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x38], 0x128
call sub.KERNEL32.dll_Process32First
fld dword [0x4238f8]
fadd qword [0x41f358]
mov ecx, eax
fstp dword [0x4238f8]
fld dword [0x4238f8]
mov edx, dword [0x4235f4]
fsub qword [0x41f448]
mov dword [esp + 0xc], edx
fisub dword [esp + 0xc]
fld qword [esp + 0x20]
fsub qword [0x41f440]
fsub qword [esp + 0x28]
fcompp
fnstsw ax
test ah, 1
jne 0x402203
mov ax, word [str.Q6KF]
movsx edx, ax
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fstp dword [esp + 0x14]
cmp ecx, ebx
je 0x402334
mov edi, esi
lea eax, [esp + 0x54]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub edi, eax
lea ebx, [ebx]
lea eax, [esp + 0x58]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x402224
push esi
call fcn.0041e783
mov ecx, dword [esp + 0x168]
add esp, 4
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402260
test dl, dl
je 0x40225c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402260
add eax, 2
add ecx, 2
test dl, dl
jne 0x402240
xor eax, eax
jmp 0x402265
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022fb
cmp dword [esp + 0x168], eax
je 0x40231c
mov ecx, dword [0x424b3c]
mov edx, dword [esp + 0x3c]
imul ecx, ecx, 0x180b5fe1
push edx
push eax
push 1
mov dword [0x424b3c], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4022f7
mov ax, word [0x42366c]
mov edx, dword [0x425f90]
movsx ecx, ax
mov eax, 0xb8a9f54d
sub eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
push esi
fild dword [esp + 0x18]
inc ebx
fstp qword [esp + 0x34]
fld qword [esp + 0x2c]
fsub dword [0x4245d0]
fsub dword [0x425fb4]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fld qword [esp + 0x2c]
fadd qword [0x41f358]
fstp qword [esp + 0x2c]
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402220
jmp 0x40232f
fld dword [0x42382c]
inc ebx
fsub qword [0x41f438]
fstp dword [0x42382c]
mov edi, dword [esp + 0x14]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [esp + 0x18], 0x3e666b0
push esi
call fcn.0040b5bb
mov ecx, dword [esp + 0x15c]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040bb5a
add esp, 0x150
ret
Function at 0x402aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
xor eax, eax
mov dword [esp + 8], eax
xor ecx, ecx
mov word [esp], cx
mov dword [esp + 4], eax
movzx edx, word [esp]
imul edx, edx, 0x9f126bb0
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp], dx
xor edx, edx
mov word [esp + 0x4e], dx
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 8]
mov ecx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], ecx
add dword [esp + 8], ecx
sub edx, 0x40a763d3
sub esi, 0x34f53748
cmp edx, esi
jne 0x402b1a
mov edx, dword [esp + 0xc]
mov dword [esp + 4], edx
fild dword [esp + 4]
fstp dword [0x425f28]
dec dword [esp + 0xc]
jmp 0x402b3e
mov edx, dword [0x42383c]
mov esi, dword [esp + 8]
sub esi, edx
mov dword [esp + 0xc], esi
fild dword [esp + 0xc]
fadd dword [0x425fb0]
fstp dword [0x425fb0]
dec dword [esp + 8]
mov word [esp + 0x50], cx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x24]
push edx
push eax
push eax
push 8
push eax
push eax
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dx, word [0x424b74]
mov ecx, dword [esp + 8]
movsx eax, dx
mov edx, dword [0x423714]
sub eax, ecx
lea eax, [eax + edx + 0x737f1491]
mov word [0x424b74], ax
pop esi
add esp, 0x60
ret
Function at 0x4030a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
fldz
push ebx
xor eax, eax
fstp qword [esp + 0x14]
xor ecx, ecx
push 0x2e
mov word [esp + 8], ax
push 0x4245e8
mov word [esp + 0x10], cx
call fcn.00402070
add esp, 8
lea edx, [esp + 0x10]
push edx
mov ebx, eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4031a7
push esi
push edi
push 0x34
push 0x423574
call fcn.00402070
mov edx, dword [esp + 0x30]
mov esi, eax
movzx eax, word [esp + 0x18]
add esp, 8
sub eax, 0x326ad909
mov word [esp + 0x10], ax
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403110
mov ecx, dword [esp + 0x18]
sub eax, edi
push eax
push edx
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
fldz
push 0x34
fstp qword [esp + 0x14]
fldz
push 0
fstp dword [esp + 0x18]
push esi
call fcn.0040bae0
push esi
call fcn.0040b5bb
movzx edx, word [0x423134]
add edx, 0x218d55f
mov word [0x423134], dx
add esp, 0x10
fld qword [0x423a60]
pop edi
fadd qword [0x41f358]
pop esi
fstp qword [0x423a60]
fld qword [0x423a60]
mov ax, word [esp + 4]
movsx ecx, ax
mov dword [esp + 8], ecx
fild dword [esp + 8]
fsubp st(1)
fcomp qword [0x41f4f8]
fnstsw ax
test ah, 5
jp 0x4031a7
movzx edx, word [esp + 4]
sub edx, 0x7052e400
mov word [esp + 4], dx
fldz
push 0x2e
fstp qword [esp + 0xc]
push 0
fldz
push ebx
fstp dword [esp + 0x14]
call fcn.0040bae0
push ebx
call fcn.0040b5bb
movzx eax, word [0x423134]
add eax, 0x218d55f
mov word [0x423134], ax
mov eax, 0xb18a5c38
fld qword [esp + 0x24]
add esp, 0x10
fld1
pop ebx
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x10]
dec word [0x425a20]
fld qword [esp + 0x10]
fadd qword [0x423720]
mov cx, word [0x425a20]
movsx edx, cx
sub eax, edx
fsub qword [0x41f4f0]
mov dword [esp + 4], eax
fild dword [esp + 4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x403245
fld qword [0x424b00]
fstp qword [esp + 0x10]
fsubr qword [0x424b00]
mov edx, dword [esp + 0xc]
push edx
fstp qword [0x424b00]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x18
ret
movzx ecx, word [esp]
fstp st(0)
mov edx, dword [esp + 0xc]
add ecx, 0xcd84415
push edx
mov word [esp + 4], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x18
ret
Function at 0x403510
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
fldz
push ebx
push esi
fst dword [esp + 8]
push edi
push 3
mov dword [esp + 0x10], 0
fstp dword [esp + 0x10]
push 0x4235d4
call fcn.00402070
mov ebx, dword [esp + 0x20]
mov esi, eax
push esi
push ebx
call fcn.0040c1ec
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x403579
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld qword [0x425de8]
fadd qword [0x41f518]
push esi
push ebx
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
call fcn.0040c1ec
mov edi, eax
add esp, 8
test edi, edi
je 0x4035b4
fld dword [0x425f94]
call fcn.0040b510
push edi
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0040c0a6
push edi
call fcn.0040bec8
movzx ecx, word [0x425998]
add esp, 0x14
add ecx, 0x78287a5a
mov word [0x425998], cx
fldz
xor eax, eax
fstp qword [esp + 0xc]
mov word [esi], ax
fldz
push esi
fstp dword [esp + 0x10]
mov byte [esi + 2], al
call fcn.0040b5bb
movzx edx, word [0x423134]
add esp, 4
pop edi
add edx, 0x218d55f
pop esi
mov word [0x423134], dx
pop ebx
add esp, 8
ret
Function at 0x40bb5a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4260d0]
jne 0x40bb64
repz ret
jmp fcn.0040fd47

Function at 0x416b64
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.0040fec7
and dword [ebp - 4], 0
cmp dword [0x428334], 0
mov ebx, eax
jne 0x416c15
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416cc6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420a80
push edi
call esi
test eax, eax
je 0x416cc6
push eax
call fcn.0040fe55
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428334], eax
call esi
push eax
call fcn.0040fe55
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428338], eax
call esi
push eax
call fcn.0040fe55
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42833c], eax
call esi
push eax
call fcn.0040fe55
pop ecx
mov dword [0x428344], eax
test eax, eax
je 0x416c15
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040fe55
pop ecx
mov dword [0x428340], eax
mov eax, dword [0x428340]
cmp eax, ebx
je 0x416c6d
cmp dword [0x428344], ebx
je 0x416c6d
push eax
call fcn.0040fed0
push dword [0x428344]
mov esi, eax
call fcn.0040fed0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416c6d
test edi, edi
je 0x416c6d
call esi
test eax, eax
je 0x416c64
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416c64
test byte [ebp - 0xc], 1
jne 0x416c6d
or dword [ebp + 0x10], 0x200000
jmp 0x416ca6
mov eax, dword [0x428338]
cmp eax, ebx
je 0x416ca6
push eax
call fcn.0040fed0
pop ecx
test eax, eax
je 0x416ca6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416ca6
mov eax, dword [0x42833c]
cmp eax, ebx
je 0x416ca6
push eax
call fcn.0040fed0
pop ecx
test eax, eax
je 0x416ca6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428334]
call fcn.0040fed0
pop ecx
test eax, eax
je 0x416cc6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416cc8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e84
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402edd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d20
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d20
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ec7
inc ebx
jmp 0x402eb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ee4
lea eax, [ebp - 8]
call fcn.004045c4
ret

Function at 0x402eec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045c4
test esi, esi
jne 0x402f23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004046b4
jmp 0x402f44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d20
mov dword [esp], eax
test esi, esi
je 0x402f44
cmp dword [ebx], 0
je 0x402f44
dec esi
jmp 0x402f2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403620
Capabilities:
Query or enumerate registry value

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

Function at 0x4043bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d04c], 0
je 0x40441d
cmp word [0x47d220], 0xd7b2
jne 0x4043e5
cmp dword [0x47d228], 0
jbe 0x4043e5
mov eax, 0x47d21c
call dword [0x47d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47906c
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 0x404444
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479030], 0
jne 0x404439
push 0
push 0x479064
push 0x47906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404578
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.00402ac0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404540
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40653e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404834
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406528
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406545
lea eax, [ebp - 0x10]
call fcn.004045c4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a84
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4092ed
test al, 0x10
jne 0x4092f1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bfd0
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 0x40c009
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046b4
jmp 0x40c012
mov eax, ebx
mov edx, esi
call fcn.00404618
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c01c
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 0x40c03d
mov al, byte [esp]
jmp 0x40c03f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c6d4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c53c
mov eax, dword [0x47c570]
cmp byte [eax], 0
je 0x40c750
mov eax, dword [0x47c350]
call fcn.00403008
call fcn.00402c4c
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.004096b8
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 0x40c798
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c786
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47c2f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47d668]
call fcn.00405928
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
Function at 0x4200d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47d88c
cmp dword [edi], 0
jne 0x42014c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47d888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x479418
mov ecx, 2
call fcn.00402ce0
mov edx, 0x4200a8
lea eax, [esi + 5]
call fcn.004200c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004200c8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x420121
mov dword [0x47d888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421770
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421776
ret

Function at 0x423cb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423d01
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423ce8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423cd8
jmp 0x423d01
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423ce9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ce6c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
push ebp
push 0x42cf9a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42cf6d
xor eax, eax
push ebp
push 0x42cf66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404884
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42cf3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42cf2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404884
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404a84
mov edx, ebx
pop ecx
call fcn.00402ce0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cf31
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47c290]
mov dl, 1
mov eax, dword [0x407984]
call fcn.0040c864
call fcn.00403f54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cfa1
lea eax, [ebp - 4]
call fcn.004045c4
ret