joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401480
Capabilities:
Create directory
Get common file path
Get file attributes
Query environment variable
Set current directory
Terminate process

Disassembly:
sub esp, 0x120
push 0
call dword [sym.imp.msvcrt.dll__time64]
push eax
call dword [sym.imp.msvcrt.dll_srand]
push 0x103
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call sub.msvcrt.dll_memset
mov ecx, dword [0x4130ec]
add esp, 0x14
push ecx
push 0x104
lea edx, [esp + 0x24]
push edx
call fcn.00407730
push 0x414760
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
jmp 0x4014e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014e0
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_rand]
push ebp
push esi
sub eax, edx
push edi
lea edi, [esp + eax + 0x2c]
lea ebp, [esp + 0x130]
mov dword [esp + 0x10], 0
sub ebp, edi
xor esi, esi
cmp esi, 0x14
jge 0x40152b
call ebx
xor edx, edx
div dword [0x413148]
mov eax, dword [0x413144]
inc esi
cmp esi, 0x14
mov cl, byte [edx + eax]
mov byte [esp + esi + 0x13], cl
jl 0x40150f
push ebp
lea edx, [esp + 0x18]
push edx
push edi
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
push 0x414328
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x401565
push 0x414328
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401573
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x64
mov dword [esp + 0x10], eax
jl 0x401508
push 0x414328
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
pop ebp
pop ebx
test al, 0x10
jne 0x40158e
push 0x3b
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0x414328
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4015a7
push 0x3b
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x414328
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4015be
push 0x3b
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esp, 0x120
ret

Function at 0x4015d0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x401605
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x4015f0
mov eax, dword [0x41330c]
mov ecx, dword [ebx + esi*4]
push eax
push ecx
call ebp
test eax, eax
je 0x40163d
inc esi
cmp esi, edi
jl 0x4015f0
mov edx, dword [0x413154]
mov eax, dword [0x413104]
mov ecx, dword [0x413294]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0xffffffff
call fcn.00407340
add esp, 0x10
test eax, eax
jne 0x40163d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401650
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4148a0]
and eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40166d
mov eax, dword [sym.imp.KERNEL32.dll_CreateMailslotA]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40167d
mov eax, dword [sym.imp.GDI32.dll_PolyPolyline]
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40168d
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40169d
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4016ad
mov eax, dword [sym.imp.SHELL32.dll_SHCreateShellFolderView]
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016bd
mov eax, dword [sym.imp.USER32.dll_FrameRect]
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4016cd
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4016dd
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016ed
mov eax, dword [sym.imp.GDI32.dll_StrokePath]
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4016fd
mov eax, dword [sym.imp.KERNEL32.dll_DeleteTimerQueueEx]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40170d
mov eax, dword [sym.imp.USER32.dll_AttachThreadInput]
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40171d
mov eax, dword [sym.imp.GDI32.dll_FlattenPath]
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40172d
mov eax, dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40173d
mov eax, dword [sym.imp.SHELL32.dll_SHGetIconOverlayIndexA]
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40174d
mov eax, dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40175d
mov eax, dword [sym.imp.GDI32.dll_Pie]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40176d
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40177d
mov eax, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
ret 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40178d
mov eax, dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
ret 0x10
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40179d
mov eax, dword [sym.imp.KERNEL32.dll_ExitThread]
ret 0x10
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call fcn.00401940
mov eax, dword [sym.imp.msvcrt.dll___argv]
mov ecx, dword [eax]
mov edx, dword [sym.imp.msvcrt.dll___argc]
mov eax, dword [edx]
push ecx
push eax
call fcn.004046e0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4022c6
Capabilities:
Terminate process

Disassembly:
call fcn.0040d910
jmp 0x40d219
push 0x58
push 0x4101a0
call fcn.0040d7e4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x414f90
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40d279
cmp eax, esi
jne 0x40d26c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x40d27c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d253
xor esi, esi
inc esi
mov eax, dword [0x414f8c]
cmp eax, esi
jne 0x40d28f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40d2be
mov eax, dword [0x414f8c]
test eax, eax
jne 0x40d2b8
mov dword [0x414f8c], esi
push 0x40f3e8
push 0x40f3d8
call fcn.004022a2
pop ecx
pop ecx
test eax, eax
je 0x40d2be
jmp 0x40d3e6
mov dword [0x414c50], esi
mov eax, dword [0x414f8c]
cmp eax, esi
jne 0x40d2e2
push 0x40f3d4
push 0x40f240
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x414f8c], 2
test ebx, ebx
jne 0x40d2ee
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x414f94], 0
je 0x40d312
push 0x414f94
call fcn.0040d644
pop ecx
test eax, eax
je 0x40d312
push 0
push 2
push 0
call dword [0x414f94]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40d36e
test al, al
je 0x40d32c
cmp dword [ebp - 0x1c], 0
jne 0x40d36e
mov al, byte [esi]
test al, al
je 0x40d33c
cmp al, 0x20
ja 0x40d33c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40d32c
test byte [ebp - 0x3c], 1
je 0x40d348
movzx eax, word [ebp - 0x38]
jmp 0x40d34b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x414c4c], eax
cmp dword [0x414c40], 0
jne 0x40d3c2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x40d37d
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x40d390
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x40d319
cmp dword [0x414c50], 0
jne 0x40d3d1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x414c4c]
jmp 0x40d3f2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0040d829
ret
Function at 0x402570
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x20
mov ecx, 0x1e
lea eax, [esp]
jmp 0x402580
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x402580
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402596
sub eax, edx
mov edi, eax
lea ebx, [edi + 2]
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
push ebx
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
lea ecx, [esp + 0x10]
mov eax, 0x414
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 3
mov word [esp + 0x24], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x402680
Capabilities:
Terminate process

Disassembly:
sub esp, 0x68
push esi
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call fcn.004062e0
push 0
push 0
push 0
push 0x400
push 0x6801
mov ecx, 0x19
mov esi, str.6HdH.ls_zSNqThff____S_Hh___F64mGy9_k6IWjcR7_lz3fZ_4.D_unvCeSHUcSP.1_ozH7L_537vnB_mamZ4TBdD9_
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x80
push 0x8004
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea eax, [esp + 0x30]
push 0x64
push eax
movsb byte es:[edi], byte [esi]
call fcn.00408130
add esp, 0x30
pop edi
pop esi
test al, al
jne 0x4026eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esp, 0x68
ret

Function at 0x402840
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x4130fc]
push esi
mov esi, dword [esp + 8]
push eax
push esi
call fcn.00404f60
add esp, 8
push 0
test eax, eax
je 0x402873
push 0xffffffffffffffff
push esi
call fcn.00405050
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x38
pop esi
ret
push 1
push 0
push esi
call fcn.00404f40
add esp, 0x10
test eax, eax
je 0x40289f
push 0
push 0xffffffffffffffff
push esi
call fcn.00405050
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x39
pop esi
ret
push 0xffffffffffffffff
push esi
call fcn.00404e70
add esp, 8
pop esi
ret
Function at 0x4044b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
call fcn.00404f00
mov esi, eax
mov dword [0x414548], eax
test esi, esi
jne 0x4044e1
push 0x414328
call fcn.00404cc0
add esp, 4
push 0x37
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100
push 0
push esi
call fcn.00404dd0
push esi
call fcn.00405090
mov ebx, dword [ebp + 8]
push 0
push ebx
push esi
call fcn.00404e60
xor edi, edi
add esp, 0x1c
mov dword [esp + 0x3c], edi
test ebx, ebx
jle 0x404541
lea ecx, [ecx]
fild dword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
push esi
call fcn.00405080
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edi*4]
push ecx
push esi
call fcn.00404fd0
push 0xfffffffffffffffd
push esi
call fcn.00404d80
inc edi
add esp, 0x1c
cmp edi, ebx
mov dword [esp + 0x3c], edi
jl 0x404510
mov edx, dword [0x4132fc]
push edx
push 0xffffd8ee
push esi
call fcn.00404e80
push esi
push 0x40f4dd
call fcn.00406b90
push fcn.00406b90
push 0
push 0
push 0
call fcn.00406630
add esp, 0x24
mov ecx, 0x10
mov eax, 0x414538
jmp 0x404580
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x404580
push 0x414538
push esi
call fcn.00404e30
mov eax, dword [0x4131ec]
push eax
push 0xffffd8ee
push esi
call fcn.00404e80
push 0x41442c
push esi
mov dword [0x41442c], 0x4071b0
call fcn.00404e30
mov ecx, dword [0x413164]
push ecx
push 0xffffd8ee
push esi
call fcn.00404e80
add esp, 0x28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x78
push esi
push edi
call fcn.00402680
call fcn.00404600
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
push esi
push edi
call fcn.004015d0
push esi
push edi
call fcn.00401b20
mov eax, dword [esi]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40474a
mov ecx, dword [esi]
push 0x414864
push 0x414658
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40473f
cmp eax, 0x104
jbe 0x40476a
pop edi
mov eax, 0x3c
pop esi
add esp, 0x78
ret
mov edx, dword [sym.imp.msvcrt.dll__pgmptr]
mov byte [0x41475b], 0
mov eax, dword [edx]
push 0x103
push eax
push 0x414658
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x40f41c
push 0x414658
lea ecx, [esp + 0x48]
call fcn.00407db0
lea ecx, [esp + 0x40]
call fcn.004077f0
lea ecx, [esp + 0x40]
test al, al
jne 0x40479e
call fcn.004077d0
pop edi
mov eax, 0x42
pop esi
add esp, 0x78
ret
push ebp
mov dword [0x41475c], ecx
call fcn.00401480
call fcn.00401de0
push esi
push edi
call fcn.004044b0
mov esi, dword [0x414548]
push esi
call fcn.00402840
add esp, 0xc
mov edi, 1
mov ebp, eax
lea esp, [esp]
cmp ebp, 0x63
jne 0x4047e1
push 0
call fcn.00406640
add esp, 4
jmp 0x4047ca
mov edx, dword [0x414538]
test edx, edx
je 0x40482e
mov eax, dword [0x41453c]
test eax, eax
jne 0x40482e
mov ecx, dword [0x41321c]
push ecx
push esi
call fcn.00404f60
add esp, 8
test eax, eax
jne 0x404823
push eax
push edi
push eax
push esi
call fcn.00404f40
add esp, 0x10
test eax, eax
jne 0x404823
mov dword [0x41453c], edi
lea ebp, [eax + 0x63]
jmp 0x4047d0
push 0xffffffffffffffff
push esi
call fcn.00404340
add esp, 8
mov edi, dword [0x414540]
mov edx, dword [0x4132c4]
push edx
call fcn.00406660
add esp, 4
cmp edi, 0xffffffff
je 0x404854
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00404330
push esi
call fcn.00404f10
mov eax, dword [0x414544]
add esp, 4
test eax, eax
je 0x4048bf
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebx
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov edi, eax
call esi
mov esi, dword [0x413214]
mov ecx, esi
mov dword [esp + 0x10], 0
lea ebx, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404890
push 0
lea edx, [esp + 0x14]
push edx
sub ecx, ebx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0
lea eax, [esp + 0x14]
push eax
push 0x31
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
pop ebx
push 0x414328
call fcn.00404cc0
push 0x414328
call fcn.00402570
add esp, 8
lea ecx, [esp + 0x44]
call fcn.004077d0
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 0x78
ret
Function at 0x404cc0
Capabilities:
Delete file

Disassembly:
cmp dword [0x413344], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x404d10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0x413344
mov eax, dword [esi - 4]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x103
push eax
push edx
call edi
test eax, eax
jbe 0x404d05
mov eax, dword [esi]
mov ecx, dword [eax]
push ecx
call ebx
mov edx, dword [esi - 4]
push edx
call ebp
add esi, 8
cmp dword [esi], 0
jne 0x404ce4
pop edi
pop esi
pop ebx
mov eax, dword [esp + 8]
push eax
call ebp
pop ebp
ret
Function at 0x407200
Capabilities:
Read file via mapping
Set environment variable

Disassembly:
sub esp, 0x40
push 0
push 0x10
push 0
push 0x8000040
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x41489c], eax
test eax, eax
je 0x4072db
push esi
push edi
push 0x10
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0
push esi
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xffffffff
call edi
push eax
call edi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [esi], 0xffffffff
je 0x4072bc
mov ecx, dword [0x41489c]
push ecx
push 0x40f430
lea edx, [esp + 0x1c]
push 0x32
push edx
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
test eax, eax
jle 0x4072bc
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
mov eax, esi
pop esi
add esp, 0x40
ret
mov edx, dword [0x41489c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x41489c], 0
xor eax, eax
pop esi
add esp, 0x40
ret
xor eax, eax
add esp, 0x40
ret

Function at 0x4072f0
Capabilities:
Query environment variable
Read file via mapping

Disassembly:
sub esp, 0x34
push 0x32
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40732e
lea edx, [esp]
push edx
call dword [sym.imp.msvcrt.dll_atoi]
add esp, 4
mov dword [0x41489c], eax
test eax, eax
je 0x40732e
push 0x10
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add esp, 0x34
ret
xor eax, eax
add esp, 0x34
ret
Function at 0x407670
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x41475c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.00407d80
test al, al
jne 0x4076a6
xor eax, eax
add esp, 0xc
ret
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push 0x80
push 1
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407701
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4076fa
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 8]
je 0x407709
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x407800
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x407831
mov eax, 0xffffffc9
pop esi
ret 4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x407853
mov eax, 0xffffffca
pop esi
ret 4
push edi
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x407871
lea eax, [edi - 0x35]
pop edi
pop esi
ret 4
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40788c
pop edi
mov eax, 0xffffffcc
pop esi
ret 4
add eax, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x407eb9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00405eea
mov dword [ebp - 0x14], eax
cmp dword [0x43023c], edi
jne 0x407faa
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x407f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40808a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40808a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40808a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x43023c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x430240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x430244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43024c], eax
test eax, eax
je 0x407fa7
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430248], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407fcf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407fc2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x407fe4
push 4
pop eax
jmp 0x40808c
cmp dword [ebp - 0x14], edi
je 0x407fe4
push dword [0x43023c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407fc9
mov eax, dword [0x430248]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x408042
cmp dword [0x43024c], esi
je 0x408042
push eax
call ebx
push dword [0x43024c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408042
test eax, eax
je 0x408042
call ecx
test eax, eax
je 0x408037
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408037
test byte [ebp - 8], 1
jne 0x408042
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x408072
mov eax, dword [0x430240]
cmp eax, esi
je 0x40806f
push eax
call ebx
test eax, eax
je 0x40806f
call eax
mov edi, eax
test edi, edi
je 0x40806f
mov eax, dword [0x430244]
cmp eax, esi
je 0x40806f
push eax
call ebx
test eax, eax
je 0x40806f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x43023c]
call ebx
test eax, eax
je 0x40808a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40808c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b8d
leave
ret
Function at 0x419a37
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404cf4
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x419a6f
xor eax, eax
jmp 0x419a9b
cmp esi, dword [ebp - 4]
je 0x419a98
cmp dword [ebp + 0xc], 0
je 0x419a98
push dword [edi + 0x9c]
call fcn.00419645
push dword [edi + 0x9c]
mov esi, eax
call fcn.00407de0
pop ecx
pop ecx
cmp esi, eax
je 0x419a6b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret