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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1033888]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100f304
call esi
mov edi, eax
cmp edi, ebx
je 0x100f2ea
mov dword [0x1033888], 1
jmp 0x100f309
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100f2ff
push 2
pop eax
mov dword [0x1033888], eax
jmp 0x100f304
mov eax, dword [0x1033888]
cmp eax, 1
jne 0x100f381
cmp edi, ebx
jne 0x100f315
call esi
mov edi, eax
cmp edi, ebx
je 0x100f38a
cmp word [edi], bx
mov eax, edi
je 0x100f32a
inc eax
inc eax
cmp word [eax], bx
jne 0x100f31c
inc eax
inc eax
cmp word [eax], bx
jne 0x100f31c
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100f378
push eax
call fcn.0100e9e7
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100f378
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100f375
push dword [ebp - 4]
call fcn.0100e922
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100f3d9
cmp eax, 2
je 0x100f38e
cmp eax, ebx
je 0x100f38e
xor eax, eax
jmp 0x100f3db
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100f38a
cmp byte [esi], bl
je 0x100f3ab
inc eax
cmp byte [eax], bl
jne 0x100f3a1
inc eax
cmp byte [eax], bl
jne 0x100f3a1
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100e9e7
cmp eax, ebx
pop ecx
je 0x100f3d2
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100f792
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100e330
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f7f8
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1033730]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100f7fc
xor eax, eax
jmp 0x100f809
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10106c2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10338b8], ebx
push esi
push edi
jne 0x1010744
push 0x1001c7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x101077f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001c70
push edi
call esi
test eax, eax
mov dword [0x10338b8], eax
je 0x101077f
push 0x1001c60
push edi
call esi
push 0x1001c4c
push edi
mov dword [0x10338bc], eax
call esi
cmp dword [0x1033730], 2
mov dword [0x10338c0], eax
jne 0x1010744
push 0x1001c30
push edi
call esi
test eax, eax
mov dword [0x10338c8], eax
je 0x1010744
push 0x1001c18
push edi
call esi
mov dword [0x10338c4], eax
mov eax, dword [0x10338c4]
test eax, eax
je 0x1010789
call eax
test eax, eax
je 0x1010770
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10338c8]
test eax, eax
je 0x1010770
test byte [ebp - 8], 1
jne 0x1010789
cmp dword [0x103373c], 4
jb 0x1010783
or byte [ebp + 0x12], 0x20
jmp 0x10107a8
xor eax, eax
jmp 0x10107b8
or byte [ebp + 0x12], 4
jmp 0x10107a8
mov eax, dword [0x10338bc]
test eax, eax
je 0x10107a8
call eax
mov ebx, eax
test ebx, ebx
je 0x10107a8
mov eax, dword [0x10338c0]
test eax, eax
je 0x10107a8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10338b8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010e52
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1010e83
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1010e8a
cmp ebx, dword [ebp + 8]
jae 0x1010e8a
xor eax, eax
jmp 0x101107a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1010e9b
xor eax, eax
inc eax
jmp 0x1011079
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1010eb1
cmp ecx, edx
jae 0x1010ff6
cmp dword [eax + 4], 0
je 0x1010eba
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1010ea2
cmp dword [ebp + 8], 0
je 0x1010edc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1010ff6
cmp eax, esi
jae 0x1010ff6
mov eax, dword [0x10338d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1010f01
cmp dword [esi*4 + 0x10338d8], edi
je 0x1010ffa
inc esi
cmp esi, eax
jl 0x1010eef
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1011076
cmp dword [ebp - 8], 0x1000000
jne 0x1011076
test byte [ebp - 0xc], 0xcc
je 0x1010f7f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1011076
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1011076
cmp word [eax + 0x18], 0x10b
jne 0x1011076
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1011076
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1010f7f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1010f7f
test byte [ecx + 0x27], 0x80
jne 0x1010ff6
push 1
push 0x1033918
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1010e93
mov ecx, dword [0x10338d0]
test ecx, ecx
mov edx, ecx
jle 0x1010fb3
lea eax, [ecx*4 + 0x10338d4]
cmp dword [eax], edi
je 0x1010fb3
dec edx
sub eax, 4
test edx, edx
jg 0x1010fa7
test edx, edx
jne 0x1010fe4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1010fc0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1010fd8
lea eax, [edx*4 + 0x10338d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1010fc6
cmp ecx, 0x10
jge 0x1010fe4
inc ecx
mov dword [0x10338d0], ecx
push 0
push 0x1033918
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1010e93
xor eax, eax
jmp 0x1011079
test esi, esi
jle 0x1010e93
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1033918
call ebx
test eax, eax
jne 0x1010e93
cmp dword [esi*4 + 0x10338d8], edi
je 0x1011050
mov eax, dword [0x10338d0]
lea esi, [eax - 1]
test esi, esi
jl 0x101103e
cmp dword [esi*4 + 0x10338d8], edi
je 0x101103a
dec esi
jns 0x101102e
test esi, esi
jge 0x101104e
cmp eax, 0x10
jge 0x1011049
inc eax
mov dword [0x10338d0], eax
lea esi, [eax - 1]
jmp 0x1011050
je 0x1011068
xor ecx, ecx
test esi, esi
jl 0x1011068
lea eax, [ecx*4 + 0x10338d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1011056
push 0
push 0x1033918
call ebx
jmp 0x1010e93
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40203a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402094
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402086
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402082
cmp esi, ecx
jae 0x402086
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x402072
cmp esi, ecx
jb 0x40208a
xor eax, eax
jmp 0x402093
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x402ed8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x402f33
xor eax, eax
mov edi, edx
mov dword [ebp + 0xc], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x402efb
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x402ef3
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004047b7
int3
Function at 0x4033d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40706c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x220]
xor ebx, ebx
push edx
push 0x2001f
mov eax, ecx
mov dword [ebp - 0x218], ebx
mov ecx, dword [ebp + 8]
push ebx
push ecx
push dword [eax]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x403506
mov esi, ebx
cmp dword [ebp - 0x218], ebx
je 0x40344d
push dword [ebp - 0x218]
call edi
mov esi, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
test esi, esi
jne 0x403506
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0x100
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
call ebx
test eax, eax
jne 0x4034da
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004033d0
mov esi, eax
test esi, esi
jne 0x403506
lea eax, [ebp - 0x230]
mov dword [ebp - 0x21c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
call ebx
test eax, eax
jne 0x4034dc
jmp 0x403491
xor esi, esi
cmp dword [ebp - 0x218], 0
je 0x4034f3
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], esi
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
call fcn.0040357c
mov esi, eax
cmp dword [ebp - 0x218], 0
je 0x403517
push dword [ebp - 0x218]
call edi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405dd4
mov esp, ebp
pop ebp
ret 4
Function at 0x404020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x414
mov eax, 0x4069aa
call fcn.0040665d
mov eax, dword [ebp + 8]
xor edx, edx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x414], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404075
call fcn.004046e6
mov esi, eax
jmp 0x404154
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x404090
call fcn.004046e6
jmp 0x40414b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x404086
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4040d2
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x4040c8
lea ecx, [ebp - 0x414]
call fcn.00402a57
mov esi, 0x8007000e
jmp 0x40416d
push 2
push eax
call fcn.00404460
cmp eax, 0x400
jbe 0x4040f5
push eax
lea ecx, [ebp - 0x414]
call fcn.00402a69
mov eax, dword [ebp - 0x414]
jmp 0x404101
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 1
test eax, eax
jne 0x404113
mov esi, 0x8007000e
jmp 0x40414d
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x404086
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x420]
push dword [ebp - 0x414]
call fcn.00403e4d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x40416d
lea ecx, [ebp - 0x414]
call fcn.00402a57
lea ecx, [ebp - 0x418]
call fcn.004043f2
mov eax, esi
call fcn.0040661e
ret 0x10
Function at 0x4050e7
Capabilities:
Get user security identifier

Disassembly:
push 0xd4
mov eax, 0x406a0c
call fcn.0040665d
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004052e3
test ebx, ebx
je 0x405270
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov edi, 0x80
push 2
push edi
call fcn.00404460
cmp eax, edi
jbe 0x405138
push eax
lea ecx, [ebp - 0xd8]
call fcn.00402a69
mov edi, dword [ebp - 0xd8]
jmp 0x405144
lea edi, [ebp - 0xd4]
mov dword [ebp - 0xd8], edi
lea eax, [esi + 0x4c]
mov dword [ebp - 0xdc], 0x44
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0x80
push eax
push edi
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4051e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405250
cmp dword [ebp - 0xdc], 0x44
jbe 0x40519e
push 0x80004005
call fcn.004047b7
mov eax, dword [ebp - 0xe0]
cmp eax, 0x80
jbe 0x4051bf
add eax, eax
lea ecx, [ebp - 0xd8]
push eax
call fcn.004054c4
mov edi, dword [ebp - 0xd8]
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0xe0]
push eax
push edi
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x405250
lea eax, [ebp - 0x54]
mov byte [esi + 0x48], 1
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x405250
mov ecx, edi
call fcn.00402816
push eax
push edi
lea ecx, [esi + 0x54]
call fcn.00404614
mov ecx, ebx
call fcn.00402816
push eax
push ebx
lea ecx, [esi + 0x50]
call fcn.00404614
xor ecx, ecx
call fcn.00402816
push eax
push 0
lea ecx, [esi + 0x5c]
call fcn.00404614
lea ecx, [ebp - 0xd4]
cmp dword [ebp - 0xd8], ecx
je 0x40524c
lea ecx, [ebp - 0xd8]
call fcn.00402a57
mov al, 1
jmp 0x405272
mov ecx, esi
call fcn.004052e3
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x405270
lea ecx, [ebp - 0xd8]
call fcn.00402a57
xor al, al
call fcn.0040661e
ret 8
Function at 0x405315
Capabilities:
Get session user name

Disassembly:
push 0x6c
mov eax, 0x406aa8
call fcn.0040665d
mov esi, edx
mov ebx, ecx
mov eax, dword [0x407078]
cmp eax, 0x407078
je 0x405350
test byte [eax + 0x1c], 1
je 0x405350
cmp byte [eax + 0x19], 5
jb 0x405350
push dword [eax + 0x14]
mov edx, 0x4054b4
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.004014ee
lea eax, [ebp - 0x78]
mov ecx, 0x7fff
push eax
mov dword [ebp - 0x78], ecx
push ecx
mov ecx, esi
call fcn.004045be
push eax
push 2
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
movzx edi, al
mov eax, dword [0x407078]
cmp eax, 0x407078
je 0x40539c
test byte [eax + 0x1c], 2
je 0x40539c
cmp byte [eax + 0x19], 4
jb 0x40539c
push edi
push dword [eax + 0x14]
mov edx, 0x4054b4
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.0040150c
mov ecx, dword [esi]
call fcn.00402816
push eax
mov ecx, esi
call fcn.004045e7
lea ecx, [ebp - 0x74]
call fcn.00405048
and dword [ebp - 4], 0
cmp edi, 1
jne 0x405478
mov eax, dword [0x407078]
cmp eax, 0x407078
je 0x4053ed
test byte [eax + 0x1c], 2
je 0x4053ed
cmp byte [eax + 0x19], 4
jb 0x4053ed
push dword [esi]
mov edx, 0x4054b4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.00404e24
push ecx
push dword [esi]
lea ecx, [ebp - 0x74]
call fcn.004050e7
movzx edi, al
mov eax, dword [0x407078]
cmp eax, 0x407078
je 0x40542c
test byte [eax + 0x1c], 2
je 0x40542c
cmp byte [eax + 0x19], 4
jb 0x40542c
push edi
push dword [eax + 0x14]
mov edx, 0x4054b4
push dword [eax + 0x10]
push 0x15
pop ecx
call fcn.0040150c
mov eax, dword [0x407078]
cmp edi, 1
jne 0x40547d
lea ecx, [ebp - 0x74]
call fcn.0040527a
mov esi, eax
mov ecx, esi
call fcn.00402816
push eax
push esi
mov ecx, ebx
call fcn.00404614
mov eax, dword [0x407078]
cmp eax, 0x407078
je 0x4054a4
test byte [eax + 0x1c], 2
je 0x40547d
cmp byte [eax + 0x19], 4
jb 0x40547d
push dword [ebx]
mov edx, 0x4054b4
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
pop ecx
call fcn.00404e24
mov eax, dword [0x407078]
cmp eax, 0x407078
je 0x4054a4
test byte [eax + 0x1c], 1
je 0x4054a4
cmp byte [eax + 0x19], 5
jb 0x4054a4
push edi
push dword [eax + 0x14]
mov edx, 0x4054b4
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.0040150c
lea ecx, [ebp - 0x74]
call fcn.004050af
mov eax, edi
call fcn.0040661e
ret
Function at 0x405dc4
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x405d78
call fcn.00401000
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_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
mov edx, 0x407508
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x405bac
cmp eax, edi
jne 0x405bbf
xor esi, esi
inc esi
cmp dword [0x40750c], 1
jne 0x405bcc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x405c03
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405b94
cmp dword [0x40750c], ebx
jne 0x405bf9
mov dword [0x40750c], 1
push 0x405d74
push 0x405d68
call fcn.00405da0
pop ecx
pop ecx
test eax, eax
jne 0x405d31
jmp 0x405c03
mov dword [0x407110], 1
cmp dword [0x40750c], 1
jne 0x405c27
push 0x405d64
push 0x405d44
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40750c], 2
test esi, esi
jne 0x405c34
xor eax, eax
mov ecx, 0x407508
xchg dword [ecx], eax
cmp dword [0x407518], 0
je 0x405c56
push 0x407518
call fcn.0040626d
pop ecx
test eax, eax
je 0x405c56
push ebx
push 2
push ebx
call dword [0x407518]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x405d31
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x405cc5
test ax, ax
je 0x405c7f
test edx, edx
jne 0x405cc5
movzx eax, word [ecx]
test ax, ax
je 0x405c94
cmp ax, si
ja 0x405c94
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x405c7f
test byte [ebp - 0x3c], 1
je 0x405ca0
movzx eax, word [ebp - 0x38]
jmp 0x405ca3
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x40710c], eax
cmp dword [0x407124], 0
jne 0x405d0d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x405cd6
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x405c6e
cmp dword [0x407110], 0
jne 0x405d21
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40710c]
mov dword [ebp - 4], 0xfffffffe
jmp 0x405d3d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401045
ret
call fcn.0040637f
jmp 0x405b5d

Function at 0x406160
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4061d0
call fcn.00401000
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4061c0
cmp eax, 0xffffffff
je 0x4061c0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4061b9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4061b9
cmp edx, 0x10000000
jae 0x4061b9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4061b6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00401045
ret 4
Function at 0x406228
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406266
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40625e
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406268
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40624e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40634c
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x406362
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40637d
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401f70
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea eax, [esi + 0xf8]
push 0x412078
push eax
mov dword [esi + 0xe0], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
jne 0x401fa2
mov dword [esi + 0xd8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, esi
mov dword [esi + 0xf4], ebx
call fcn.004020e0
test eax, eax
je 0x4020da
cmp byte [esi + 0xd0], 2
jne 0x40201c
mov ecx, dword [0x412874]
mov edi, dword [esi + 0xd4]
cmp ecx, ebx
je 0x40201c
mov ebp, dword [sym.imp.MFC42.DLL_tagSIZEconstCScrollView::sizeDefault]
mov edx, dword [edi + 4]
mov eax, dword [edi]
push ebp
push ebp
push edx
push eax
push 1
call sub.MFC42.DLL_CScrollView::SetScrollSizes
mov ecx, dword [edi + 4]
mov eax, dword [0x412874]
mov edx, dword [edi]
push ecx
push edx
lea ecx, [eax + 0x7c]
call sym.S_Player.exe_public:_int___thiscall_CRawBmp::Create_int__int_
test eax, eax
jne 0x40201c
push ebx
push ebx
push str.Can_not_alloc_memory_
call sub.MFC42.DLL_AfxMessageBox
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [esi + 0xe0]
mov eax, dword [esi + 0xec]
inc ecx
cmp eax, ebx
mov dword [esi + 0xe0], ecx
jne 0x40204f
push 0x3a980
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esi + 0xec], eax
je 0x4020da
mov edi, dword [esi + 0xf4]
mov ecx, esi
mov ebp, edi
mov dword [esi + 0xc0], ebx
call fcn.004020e0
test eax, eax
je 0x4020d4
mov al, byte [esi + 0xd0]
cmp al, bl
je 0x402076
cmp al, 3
jne 0x4020aa
mov ecx, dword [esi + 0xc0]
cmp ecx, 0x7530
jge 0x4020aa
mov edx, dword [esi + 0xec]
mov byte [edx + ecx*8], al
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xec]
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [esi + 0xc0]
inc eax
mov dword [esi + 0xc0], eax
mov edx, dword [esi + 0xe0]
mov edi, dword [esi + 0xf4]
inc edx
mov ecx, esi
mov dword [esi + 0xe0], edx
mov edx, dword [esi + 0xcc]
mov dword [esi + 0xe4], edx
call fcn.004020e0
test eax, eax
jne 0x402068
mov dword [esi + 0xf4], ebp
pop edi
pop esi
pop ebp
pop ebx
ret