joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f52b
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov ebx, 0x5223f0
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x41f54b
mov edi, 0x4df
jmp 0x41f58f
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x5223f4], eax
je 0x41f57c
push esi
push esi
push dword [esp + 0x18]
push 0x41fb0f
push esi
push esi
call fcn.00443185
add esp, 0x18
cmp eax, esi
mov dword [0x5223f8], eax
jne 0x41f586
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41f58f
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
pop edi
pop esi
sete al
pop ebx
ret
Function at 0x4201aa
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x14a8]
mov eax, 0x1528
call fcn.00452e90
mov eax, dword [0x5181f4]
xor eax, ebp
mov dword [ebp + 0x14a4], eax
push ebx
push edi
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x70]
inc ebx
push eax
mov dword [esi], vtable.CNTService.0
mov dword [esi + 4], 0x4fa3b0
mov dword [esi + 8], str.Device_Lock_Enterprise_Server
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 0xf01ff
mov dword [esi + 0x58], 0x10
mov dword [esi + 0x5c], 2
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [ebp - 0x70], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x60], 2
mov dword [0x5223fc], ebx
sete al
mov dword [0x522400], esi
mov dword [esi + 0x18], 0x10
mov dword [esi + 0x28], edi
cmp eax, edi
mov dword [esi + 0x40], eax
je 0x420324
mov eax, 0xff
mov ebx, 0x200
push ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x12a4]
push edi
push eax
mov dword [ebp - 0x74], 0x1000
call fcn.004424d0
push ebx
lea eax, [ebp + 0x10a4]
push edi
push eax
call fcn.004424d0
push dword [ebp - 0x74]
lea eax, [ebp + 0xa4]
push edi
push eax
call fcn.004424d0
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x12a4]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x10a4]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp + 0x12a4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x420324
lea eax, [ebp + 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x420324
lea eax, [ebp + 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ebx, eax
push ebx
call fcn.00444285
cmp eax, edi
pop ecx
mov dword [esi + 0x3c], eax
je 0x420324
lea ecx, [ebp + 0xa4]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [ebp + 0x14a4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.00441cbb
add ebp, 0x14a8
leave
ret
Function at 0x4203a9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, 0x42136b
push eax
mov esi, ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [eax + 4]
jmp 0x42045e
mov edx, dword [ecx]
cmp word [edx], 0x2d
jne 0x42045b
movzx edi, word [edx + 2]
cmp edi, 0x6c
jg 0x420427
je 0x420411
sub edi, 0x64
je 0x42048e
dec edi
je 0x420408
dec edi
je 0x42048e
sub edi, 3
jne 0x42045b
mov dword [ebp - 8], 0x421370
jmp 0x42045b
mov dword [ebp - 8], 0x42137f
jmp 0x42045b
add edx, 4
cmp word [edx], 0
jne 0x420422
dec dword [ebp - 4]
add ecx, 4
mov edx, dword [ecx]
mov dword [esi + 0x70], edx
jmp 0x42045b
sub edi, 0x70
je 0x420447
sub edi, 3
je 0x42043e
dec edi
dec edi
jne 0x42045b
mov dword [ebp - 8], 0x42137a
jmp 0x42045b
mov dword [ebp - 8], 0x421375
jmp 0x42045b
add edx, 4
cmp word [edx], 0
jne 0x420458
dec dword [ebp - 4]
add ecx, 4
mov edx, dword [ecx]
mov dword [esi + 0x74], edx
add ecx, 4
dec dword [ebp - 4]
jne 0x4203d4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 8], ebx
jne 0x4204b9
cmp dword [esi + 0x40], 0
jne 0x4204b9
mov edx, dword [esi]
xor eax, eax
inc eax
push eax
push 0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x14], eax
call dword [edx + 0x38]
jmp 0x4204be
mov ecx, edx
xor edx, edx
cmp word [ecx + 2], 0x66
push eax
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi]
push edi
push 0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x14], 1
call dword [eax + 0x38]
jmp 0x4204be
mov ecx, esi
call dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x420c83
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
jne 0x420ccc
mov esi, ebx
call fcn.00421357
push dword [ebx + 8]
push str.Debugging__s._n
call fcn.00444386
pop ecx
pop ecx
push 1
push 0x420ebe
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor esi, esi
cmp dword [ebp + 0x10], edi
je 0x420d3e
push 0x28
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.004424d0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
push edi
mov dword [ebp - 0x2c], 0x420c30
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0xc], str.RRL__FacelessWndProc_
call dword [sym.imp.USER32.dll_RegisterClassW]
push edi
push dword [ebp - 0x20]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x4f9e20
push dword [ebp - 0xc]
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push str.kernel32.dll
call esi
push str.RegisterServiceProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x420d3e
push 1
push edi
call esi
push dword [ebp - 4]
mov eax, dword [ebx]
push dword [ebp - 8]
mov ecx, ebx
call dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, edi
je 0x420d5b
push edi
push edi
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x429b8a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
mov esi, ecx
mov eax, dword [esi + 0x2a8]
cmp eax, 0xffffffff
push edi
jne 0x429c1a
push 0x4fefa8
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409a90
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x429bc6
mov eax, dword [eax + 4]
jmp 0x429bc9
add eax, 4
lea edi, [esi + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [esi + 0x2a8], eax
call fcn.00404df2
cmp dword [esi + 0x2a8], 0xffffffff
jne 0x429c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x429c03
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push eax
lea ecx, [ebp - 0xc]
call fcn.0048a7e0
push 0x50e7a0
lea eax, [ebp - 0xc]
push eax
call fcn.0044661f
lea edi, [esi + 0x58]
push edi
push eax
jmp 0x429c3e
test byte [edi], 0x10
jne 0x429c37
xor eax, eax
cmp dword [esi + 0x74], eax
jne 0x429c37
cmp dword [esi + 0x78], eax
jne 0x429c4f
cmp dword [ebp + 0xc], eax
je 0x429c4f
push edi
push dword [esi + 0x2a8]
call ebx
test eax, eax
jne 0x429c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jmp 0x429bf8
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x429c65
lea eax, [esi + 0x84]
mov ecx, esi
call fcn.00429939
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x429bfc

Function at 0x42c03c
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x5223c8]
xor esi, esi
push esi
push esi
mov ebp, 0x522404
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x42c063
mov ebx, 0x4df
jmp 0x42c0a4
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x522408], eax
je 0x42c091
push esi
push esi
push edi
push 0x42c6c8
push esi
push esi
call fcn.00443185
add esp, 0x18
cmp eax, esi
mov dword [0x52240c], eax
jne 0x42c09b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42c0a4
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
cmp ebx, esi
pop esi
pop ebp
sete al
pop ebx
ret
Function at 0x432481
Capabilities:
Check if file exists

Disassembly:
push 0x2c
push 0x513288
call fcn.0044769c
mov esi, ecx
mov ebx, edx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], ecx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], ecx
je 0x4325e0
cmp dword [ebp + 0xc], ecx
je 0x4325e0
cmp ebx, ecx
je 0x4325e0
cmp dword [ebp + 0x10], ecx
je 0x4325e0
cmp esi, ecx
je 0x4325e0
lea edi, [esi + 0x10]
or dword [edi], 0xffffffff
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
call fcn.004169fd
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
push 0
pop eax
setne al
mov dword [esi + 0x20], eax
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x3c]
push edx
push dword [ebp + 0x10]
call dword [eax + 0x10]
test eax, eax
jne 0x432542
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x432532
cmp eax, 3
jne 0x4325e7
and dword [ebp - 0x20], 0
mov dword [esi + 0x20], 3
jmp 0x4325e7
mov eax, dword [ebp - 0x3c]
mov edx, eax
mov ecx, dword [ebp - 0x38]
or edx, ecx
je 0x432536
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
push dword [ebx + 0x80]
call fcn.004457d8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x70]
push eax
add ebx, 0x5c
push ebx
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push str._oi__CALL_DLAddDataDesc__pi___I___20b20b___16b16b___4b4b___oi___piit_
push 1
push 1
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.004223b7
add esp, 0x3c
test eax, 0xfffffffe
je 0x4325b4
cmp eax, 0xfffffffe
jne 0x4325ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x4325e7
mov dword [ebp - 0x20], 0x10d9
jmp 0x4325e7
xor eax, eax
cmp dword [ebp - 0x24], edi
setne al
mov dword [esi + 0x20], eax
push 2
pop eax
cmp dword [ebp - 0x28], eax
jne 0x4325cc
mov dword [esi + 0x20], eax
jmp 0x4325e7
cmp dword [ebp - 0x28], 1
jne 0x4325e7
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
je 0x4325e7
cmp dword [ebp - 0x24], edi
je 0x4325e7
jmp 0x4325c7
mov dword [ebp - 0x20], 0x57
and dword [ebp - 4], 0
call fcn.004325f2
jmp 0x432619
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x20], 0
je 0x43262f
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x20], eax
sete al
call fcn.004476e1
ret
Function at 0x4393b6
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [0x5181f4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov esi, ecx
mov dword [ebp], edi
call fcn.00442913
push esi
call fcn.00439182
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x439400
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
jmp 0x43954c
push esi
call fcn.004420ba
pop ecx
lea eax, [eax + eax + 0x5c]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x439429
mov dword [ebp], 0xe
jmp 0x439540
push esi
push esi
call fcn.004420ba
pop ecx
add eax, 0x2e
push eax
push edi
call fcn.0044294f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004449fb
add esp, 0x14
test eax, eax
je 0x43945b
mov dword [ebp], 0x76d
jmp 0x439540
mov eax, dword [ebp - 0x18]
add eax, 0x76c
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x20]
lea eax, [ebp + 0x60]
push str._02u_02u_04u_
push 0xa
push eax
call fcn.00439b30
and word [ebp + 0x72], 0
add esp, 0x18
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.004420ba
pop ecx
add eax, 0x2e
push eax
push edi
call fcn.004429bb
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4394c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp], eax
jne 0x439540
and dword [ebp], 0
lea eax, [ebp + 4]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x4394db
cmp eax, 0x720
je 0x4394db
mov dword [ebp], eax
jmp 0x439540
movzx eax, byte [ebp + 0x13]
push eax
movzx eax, byte [ebp + 0x12]
push eax
movzx eax, byte [ebp + 0x11]
push eax
movzx eax, byte [ebp + 0x10]
push eax
movzx eax, byte [ebp + 0xf]
push eax
movzx eax, byte [ebp + 0xe]
push eax
movzx eax, byte [ebp + 0xd]
push eax
movzx eax, byte [ebp + 0xc]
push eax
movzx eax, word [ebp + 0xa]
push eax
movzx eax, word [ebp + 8]
push eax
push dword [ebp + 4]
lea eax, [ebp + 0x14]
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X.dat
push 0x25
push eax
call fcn.00439b4c
and word [ebp + 0x5c], 0
add esp, 0x38
lea eax, [ebp + 0x14]
push eax
push esi
call fcn.004420ba
pop ecx
add eax, 0x2e
push eax
push edi
call fcn.004429bb
add esp, 0xc
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp], 0
je 0x439560
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441cbb
add ebp, 0x78
leave
ret
Function at 0x4395bd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
je 0x439652
push eax
call fcn.00444484
test eax, eax
pop ecx
mov dword [ebp - 8], eax
je 0x439652
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x439649
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4fa6bc
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x439649
test edi, edi
mov eax, dword [ebp - 0xc]
je 0x43961f
mov cx, word [eax + 0xa]
mov word [edi], cx
test ebx, ebx
je 0x43962a
mov cx, word [eax + 8]
mov word [ebx], cx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x439638
mov dx, word [eax + 0xe]
mov word [ecx], dx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x439646
mov ax, word [eax + 0xc]
mov word [ecx], ax
xor esi, esi
inc esi
push dword [ebp - 8]
call fcn.00443e65
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x4396fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10
push 0x50e9d0
call fcn.0044769c
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x4397d0
cmp esi, ebx
je 0x4397d0
cmp dword [ebp + 0xc], ebx
je 0x4397d0
push 0x4fb218
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x43974f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x4397d7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x439741
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x439741
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x439785
mov dword [ebp - 0x1c], 0x9e
jmp 0x4397d7
mov eax, dword [esi]
push edi
cmp eax, ebx
je 0x43979d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x4397ab
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
mov esi, eax
cmp esi, ebx
jne 0x4397bc
mov dword [ebp - 0x1c], 0xe
jmp 0x4397d7
push edi
push dword [ebp - 0x20]
push esi
call fcn.00442550
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x4397d7
mov dword [ebp - 0x1c], 0x57
mov dword [ebp - 4], 0xfffffffe
call fcn.004397fc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x1c], ebx
sete al
call fcn.004476e1
ret

Function at 0x441cbb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5181f4]
jne 0x441cc5
repz ret
jmp fcn.00446a28
Function at 0x447806
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x518230]
je 0x447821
inc edi
cmp edi, 0x17
jb 0x447812
cmp edi, 0x17
jae 0x4479a1
push ebp
push 3
call fcn.00453523
cmp eax, 1
pop ecx
je 0x44796d
push 3
call fcn.00453523
test eax, eax
pop ecx
jne 0x447855
cmp dword [0x5181f0], 1
je 0x44796d
cmp ebx, 0xfc
je 0x4479a0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x520960
push ebp
call fcn.004468bc
add esp, 0xc
test eax, eax
je 0x44788b
push esi
push esi
push esi
push esi
push esi
call fcn.00441cd9
add esp, 0x14
push 0x104
mov esi, 0x520979
push esi
push 0
mov byte [0x520a7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4478cf
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004468bc
add esp, 0xc
test eax, eax
je 0x4478cf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00441cd9
add esp, 0x14
push esi
call fcn.00441c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x447914
push esi
call fcn.00441c30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x520c74
push 0x4e4e64
sub ecx, eax
push ecx
push eax
call fcn.00453470
add esp, 0x14
test eax, eax
je 0x447914
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00441cd9
add esp, 0x14
jmp 0x447916
xor esi, esi
push 0x4e4e60
push ebx
push ebp
call fcn.004533ff
add esp, 0xc
test eax, eax
je 0x447936
push esi
push esi
push esi
push esi
push esi
call fcn.00441cd9
add esp, 0x14
push dword [edi*8 + 0x518234]
push ebx
push ebp
call fcn.004533ff
add esp, 0xc
test eax, eax
je 0x447958
push esi
push esi
push esi
push esi
push esi
call fcn.00441cd9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00453242
add esp, 0xc
jmp 0x4479a0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4479a0
cmp ebp, 0xffffffff
je 0x4479a0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x518234]
push dword [esi]
call fcn.00441c30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x453242
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00446c0e
xor ebx, ebx
cmp dword [0x521160], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x453318
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4533f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4533f8
push eax
call fcn.00446ba0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x521160], eax
call esi
push eax
call fcn.00446ba0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x521164], eax
call esi
push eax
call fcn.00446ba0
mov dword [0x521168], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00447428
test eax, eax
pop ecx
pop ecx
je 0x4532e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441cd9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453318
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00446ba0
cmp eax, ebx
pop ecx
mov dword [0x521170], eax
je 0x453318
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00446ba0
pop ecx
mov dword [0x52116c], eax
mov eax, dword [0x52116c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45339d
cmp dword [0x521170], ecx
je 0x45339d
push eax
call fcn.00446c17
push dword [0x521170]
mov esi, eax
call fcn.00446c17
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45339d
cmp edi, ebx
je 0x45339d
call esi
cmp eax, ebx
je 0x45336a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45336a
test byte [ebp - 0x18], 1
jne 0x45339d
lea eax, [ebp - 0x10]
push eax
call fcn.0044745f
test eax, eax
pop ecx
je 0x453385
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441cd9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x453394
or dword [ebp + 0x10], 0x200000
jmp 0x4533d8
or dword [ebp + 0x10], 0x40000
jmp 0x4533d8
mov eax, dword [0x521164]
cmp eax, dword [ebp - 8]
je 0x4533d8
push eax
call fcn.00446c17
cmp eax, ebx
pop ecx
je 0x4533d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4533d8
mov eax, dword [0x521168]
cmp eax, dword [ebp - 8]
je 0x4533d8
push eax
call fcn.00446c17
cmp eax, ebx
pop ecx
je 0x4533d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x521160]
call fcn.00446c17
cmp eax, ebx
pop ecx
je 0x4533f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4533fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c9b0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x45c9d6
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x45c9c0
ret
Function at 0x4774e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d76d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.0048a9b0
mov dword [esi], vtable.QueryBuilder::Exception.0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
mov dword [esi], vtable.CMN::ExceptionLocation_class_QueryBuilder::Exception_.0
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
mov dword [esp + 0x1c], 0
mov word [ecx + 4], 0
mov edi, dword [esp + 0x2c]
test edi, edi
mov edx, dword [esp + 0x30]
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], edx
je 0x47756d
mov eax, edi
lea ebx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x477560
jmp 0x4775c0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4775cb
mov eax, edi
lea ebx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x477580
sub eax, ebx
sar eax, 1
lea eax, [edi + eax*2]
lea edx, [edi - 2]
cmp eax, edx
je 0x4775ad
lea esp, [esp]
cmp word [eax], 0x5c
je 0x4775ad
sub eax, 2
cmp eax, edx
jne 0x4775a0
lea edi, [eax + 2]
mov eax, edi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4775b5
sub eax, ebx
sar eax, 1
push eax
push edi
call fcn.00404373
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10