joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413180
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x4412a3], 1
jne 0x4131a7
cmp byte [0x4412a2], 0
jne 0x4131c6
jmp 0x4131f4
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x4131f4
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call fcn.0040d3a0
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push ebx
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x413288
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push ebp
push ebx
call edi
xor eax, eax
cmp ebx, 0xffffffff
jne 0x413288
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x43eb84]
mov eax, esp
mov ecx, esi
push eax
call edi
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push 0
call edi
cmp dword [esp + 0x10], 0
je 0x413286
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push 0xfffffffffffffffe
call edi
mov edi, eax
add edi, dword [esp + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x43eb84]
mov ecx, esi
push edi
push 0xfffffffffffffffe
call ebx
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x413290
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4412a3], 1
jne 0x4132aa
cmp byte [0x4412a2], 0
jne 0x4132c9
jmp 0x4132f5
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x4132f5
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call fcn.0040d3a0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x413310
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4412a3], 1
jne 0x41332a
cmp byte [0x4412a2], 0
jne 0x413349
jmp 0x413375
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x413375
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.0040d3a0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x413390
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x4412a3], 1
jne 0x4133af
cmp byte [0x4412a2], 0
jne 0x4133ce
jmp 0x4133fb
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x4133fb
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call fcn.0040d3a0
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x413420
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4412a3], 1
jne 0x41343a
cmp byte [0x4412a2], 0
jne 0x413459
jmp 0x413485
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x413485
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.0040d3a0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x4134a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x4412a3], 1
jne 0x4134c4
cmp byte [0x4412a2], 0
jne 0x4134e3
jmp 0x413511
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a3], 1
test eax, eax
setne byte [0x4412a2]
je 0x413511
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call fcn.0040d3a0
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [0x43eb84]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4139c0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x4412a1], 1
jne 0x4139d4
cmp byte [0x4412a0], 0
setne al
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x4412a0]
mov byte [0x4412a1], 1
ret
Function at 0x416c10
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call fcn.00412f40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x1000
push edx
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x416d4e
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x416dbb
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x416c73
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x416dbb
mov dword [esp + 0xc], edx
mov esi, dword [esp + edx*4 + 0x14]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x102c]
mov dword [edx], esi
mov dword [esp + 4], esi
movzx ebx, word [esi + eax + 6]
test ebx, ebx
je 0x416c60
add eax, dword [esp + 4]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp], 0
xor ecx, ecx
jmp 0x416cee
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esp + 0x1028]
cmp eax, ecx
mov eax, esi
movzx esi, al
mov eax, esi
mov edx, 1
cmova eax, edx
cmp edi, ecx
mov ecx, eax
cmova ecx, esi
test cl, 1
je 0x416ce4
mov eax, dword [esp]
and al, 1
jne 0x416d6a
add ebp, 0x28
dec ebx
je 0x416c60
mov esi, ecx
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 4]
push 8
push str..text
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x416cb0
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x416d30
mov ecx, esi
test cl, 1
jne 0x416cd9
jmp 0x416ce4
mov ecx, dword [esp + 0x102c]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp], eax
mov ecx, esi
test cl, 1
jne 0x416cd9
jmp 0x416ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x4412a1], 1
jne 0x416d6e
cmp byte [0x4412a0], 0
jne 0x416d8d
jmp 0x416db9
mov al, 1
jmp 0x416dbb
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4412a1], 1
test eax, eax
setne byte [0x4412a0]
je 0x416db9
mov edi, dword [fcn.00412b80]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.0040d3a0
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
xor eax, eax
add esp, 0x1014
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x100029a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100029f8
cmp byte [esi + ebx - 1], 0xa
je 0x100029cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10008084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10003020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x100031f8
mov edi, dword [0x10008084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10003107
test byte [0x10004078], 8
jne 0x100031a0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004088], 8
jne 0x10003160
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100030a9
cmp esi, 3
jbe 0x10003118
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100030ba
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10006388]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100030a9
mov dword [esp], 0x10004088
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10003080
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10003080
mov dword [esp], 0x10004078
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000306b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10003073
mov eax, 0xffffffff
jmp 0x10003107
Function at 0x1a28058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1a281a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1a2807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a2806a
add dl, dl
jne 0x1a28089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a280dc
xor eax, eax
add dl, dl
jne 0x1a28096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a2817d
add dl, dl
jne 0x1a280a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a280b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a280bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a280c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1a280d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1a28075
mov eax, 1
add dl, dl
jne 0x1a280ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a280f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a280e1
sub eax, ebx
mov ebx, 1
jne 0x1a28128
mov ecx, 1
add dl, dl
jne 0x1a2810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a28119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a28105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a28075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1a2813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a2814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a28136
cmp eax, 0x7d00
jae 0x1a2816d
cmp eax, 0x500
jb 0x1a28168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a28075
cmp eax, 0x7f
ja 0x1a28170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a28075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1a2819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1a28075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402ca0
Capabilities:
Extract resource via kernel32 functions
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x407bf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x40d724]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x58], esi
cmp word [edi + 0x5a], 0
jne 0x402ce2
cmp dword [edi + 0x54], 0
jne 0x402ce2
movzx eax, si
mov dword [edi + 0x54], eax
push 5
push esi
call sub.mfc90.dll_Ordinal_1108
push 5
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402e62
cmp byte [edi + 0x88], 0
je 0x402e62
cmp dword [0x40d850], 0
jne 0x402db9
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x320
jge 0x402d77
mov ecx, dword [str.Ms_Sans_Serif]
mov edx, dword [0x4090b4]
mov eax, dword [0x4090b8]
mov dword [0x40d7e8], ecx
mov cx, word [0x4090bc]
mov dword [0x40d850], 8
mov dword [0x40d854], 0x48
mov dword [0x40d7ec], edx
mov dword [0x40d7f0], eax
mov word [0x40d7f4], cx
jmp 0x402db9
mov edx, dword [str.Times_New_Roman]
mov eax, dword [0x4090a4]
mov ecx, dword [0x4090a8]
mov dword [0x40d7e8], edx
mov edx, dword [0x4090ac]
mov dword [0x40d850], 0xb
mov dword [0x40d854], 0x64
mov dword [0x40d7ec], eax
mov dword [0x40d7f0], ecx
mov dword [0x40d7f4], edx
call sub.CNC_connect.dll_CNC_connect_query_lang
mov ecx, 0x40909c
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402de3
test dl, dl
je 0x402ddf
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402de3
add ecx, 2
add eax, 2
test dl, dl
jne 0x402dc3
xor eax, eax
jmp 0x402de8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402e10
mov eax, dword [str.Ms_Mincho]
mov ecx, dword [0x409094]
mov dx, word [0x409098]
mov dword [0x40d7e8], eax
mov dword [0x40d7ec], ecx
mov word [0x40d7f0], dx
push 0
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_379
mov eax, dword [edi + 0x58]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call sub.mfc90.dll_Ordinal_4399
movzx ecx, word [0x40d850]
push ecx
push 0x40d7e8
lea ecx, [esp + 0x18]
call sub.mfc90.dll_Ordinal_6294
lea ecx, [esp + 0x10]
call sub.mfc90.dll_Ordinal_2142
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
call sub.mfc90.dll_Ordinal_641
mov edx, dword [esp + 0x30]
push ebx
push edx
push esi
mov ecx, edi
call sub.mfc90.dll_Ordinal_1807
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CSatellitePanelDlg.virtual_328
Function at 0x402e90
Capabilities:
Extract resource via kernel32 functions
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x407bf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x40d724]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x58], esi
cmp word [edi + 0x5a], 0
jne 0x402ce2
cmp dword [edi + 0x54], 0
jne 0x402ce2
movzx eax, si
mov dword [edi + 0x54], eax
push 5
push esi
call sub.mfc90.dll_Ordinal_1108
push 5
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402e62
cmp byte [edi + 0x88], 0
je 0x402e62
cmp dword [0x40d850], 0
jne 0x402db9
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x320
jge 0x402d77
mov ecx, dword [str.Ms_Sans_Serif]
mov edx, dword [0x4090b4]
mov eax, dword [0x4090b8]
mov dword [0x40d7e8], ecx
mov cx, word [0x4090bc]
mov dword [0x40d850], 8
mov dword [0x40d854], 0x48
mov dword [0x40d7ec], edx
mov dword [0x40d7f0], eax
mov word [0x40d7f4], cx
jmp 0x402db9
mov edx, dword [str.Times_New_Roman]
mov eax, dword [0x4090a4]
mov ecx, dword [0x4090a8]
mov dword [0x40d7e8], edx
mov edx, dword [0x4090ac]
mov dword [0x40d850], 0xb
mov dword [0x40d854], 0x64
mov dword [0x40d7ec], eax
mov dword [0x40d7f0], ecx
mov dword [0x40d7f4], edx
call sub.CNC_connect.dll_CNC_connect_query_lang
mov ecx, 0x40909c
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402de3
test dl, dl
je 0x402ddf
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402de3
add ecx, 2
add eax, 2
test dl, dl
jne 0x402dc3
xor eax, eax
jmp 0x402de8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402e10
mov eax, dword [str.Ms_Mincho]
mov ecx, dword [0x409094]
mov dx, word [0x409098]
mov dword [0x40d7e8], eax
mov dword [0x40d7ec], ecx
mov word [0x40d7f0], dx
push 0
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_379
mov eax, dword [edi + 0x58]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call sub.mfc90.dll_Ordinal_4399
movzx ecx, word [0x40d850]
push ecx
push 0x40d7e8
lea ecx, [esp + 0x18]
call sub.mfc90.dll_Ordinal_6294
lea ecx, [esp + 0x10]
call sub.mfc90.dll_Ordinal_2142
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
call sub.mfc90.dll_Ordinal_641
mov edx, dword [esp + 0x30]
push ebx
push edx
push esi
mov ecx, edi
call sub.mfc90.dll_Ordinal_1807
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CSatellitePanelDlg.virtual_328
Function at 0x4046b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x407e08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x40d724]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call sub.mfc90.dll_Ordinal_4993
mov eax, dword [esi + 0xd4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
lea edi, [esi + 0x20]
push 0x80
push eax
call ebp
mov eax, dword [esi + 0xd4]
mov ecx, dword [edi]
push eax
push 0
push 0x80
push ecx
call ebp
mov edx, dword [sym.imp.MSVCR90.dll___argc]
cmp dword [edx], 2
jne 0x404782
mov eax, dword [sym.imp.MSVCR90.dll___argv]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR90.dll_atoi]
lea ecx, [esp + 0x17]
push ecx
push edi
push eax
call sub.CNC_connect.dll_CNC_connect_CP_ADMIN
movzx eax, ax
add esp, 0x10
cmp ax, 0xffff
jne 0x404762
push 0x59
push str.._applcpcp_dialog.cpp
call sub.CNC_connect.dll_CNC_connect_ep_set_assert
push str.Send_failed
push 0
call sub.CNC_connect.dll_CNC_connect_ep_do_assert
add esp, 0x10
cmp byte [esp + 0x13], 0
push 0
push 0
setne dl
push 0x10000000
mov ecx, esi
mov byte [esi + 0xd0], dl
call sub.mfc90.dll_Ordinal_4513
jmp 0x4047e5
push 0
push 0x10000000
push 0
mov ecx, esi
mov byte [esi + 0xd0], 0
call sub.mfc90.dll_Ordinal_4513
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi]
push 1
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [edi]
push 0
push 0x64
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4047e5
push 0x6f
push str.._applcpcp_dialog.cpp
call sub.CNC_connect.dll_CNC_connect_ep_set_assert
push str.System_has_no_available_timers
push 0
call sub.CNC_connect.dll_CNC_connect_ep_do_assert
add esp, 0x10
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_GetTopWindow]
push eax
call sub.mfc90.dll_Ordinal_2592
test eax, eax
je 0x404855
mov edi, dword [eax + 0x20]
test edi, edi
je 0x404855
nop
push edi
call sub.mfc90.dll_Ordinal_2592
mov ebp, eax
call fcn.00406510
push eax
mov ecx, ebp
call sub.mfc90.dll_Ordinal_4337
test eax, eax
je 0x404846
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.004065a0
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00402ea0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.mfc90.dll_Ordinal_5842
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x404800
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret

Function at 0x406c7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d724]
jne 0x406c84
repz ret
jmp fcn.004071d7
Function at 0x404e2d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404e74
cmp ebx, 0x20
je 0x404e74
cmp ebx, 0xffffffe0
je 0x404e74
jne 0x404e7d
add eax, 1
cmp esi, eax
je 0x404e8a
jne 0x404e59
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x404e8e
jne 0x404e55
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x404ea2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x404f63
test ecx, ecx
je 0x404f63
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x404f63
test ebx, ebx
je 0x404f63
mov ebx, eax
add ebx, edx
je 0x404f63
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x404f63
cmp dword [edx + eax + 0x14], 0
je 0x404f63
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x404f63
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x404f53
test dl, dl
je 0x404f4f
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x404f53
add edi, 2
add esi, 2
test dl, dl
jne 0x404f33
xor eax, eax
jmp 0x404f58
sbb eax, eax
or eax, 1
test eax, eax
je 0x404f6f
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404f20
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8