joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b0e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x42b10a
mov eax, 2
pop ebp
ret
push esi
call fcn.00426300
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x42b12a
jmp dword [eax*4 + 0x42b160]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00426430
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x42b170
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x43d140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42b26b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x42b26b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x42b1ca
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x42b1a8
jmp 0x42b26b
cmp edx, 0x200
jae 0x42b2d1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x42b26b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x42b26a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x42b26a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x42b2b3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x42b250
pop edi
mov eax, dword [0x43e288]
test eax, eax
jne 0x42b291
push str.setlocale
call fcn.0042c060
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42b28c
or eax, 0xffffffff
mov dword [0x43e288], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x42b2bf
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042503f
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x42b26a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0042503f
mov esp, ebp
pop ebp
ret
call fcn.00425192
int3

Function at 0x42b6c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042b6f0
mov esi, dword [ebp + 8]
test al, al
je 0x42b6de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042b700
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42b830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b88c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b88c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b88c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b88c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b88c
cmp dword [ecx + 0xe8], 0
je 0x42b88c
push dword [ebp + 8]
call fcn.0042b700
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43e2a0
call fcn.0042b4d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b8c1
push dword [ebp + 8]
call fcn.0042b6c0
mov esp, ebp
pop ebp
ret

Function at 0x42b900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b95c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b95c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b95c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b95c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b95c
cmp dword [ecx + 0xe8], 0
je 0x42b95c
push dword [ebp + 8]
call fcn.0042b700
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x43e2a0
call fcn.0042b4d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b991
push dword [ebp + 8]
call fcn.0042b6c0
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0x100
call 0x401090
push eax
call fcn.004019e0
add esp, 4
push 0x461180
call 0x401090
push eax
lea eax, [esp + 8]
push 0x461174
push eax
call fcn.0043ce53
lea ecx, [esp + 0x10]
push 0x46116c
push ecx
call fcn.00407b80
push 0x46114c
call fcn.0043ce22
push 0x46112c
call fcn.0043ce22
call fcn.00408b20
push 0x461128
call fcn.0043ce22
push 0x461108
call fcn.0043ce22
push 0x4610e8
call fcn.0043ce22
add esp, 0x2c
call fcn.004038a0
push 0
call fcn.0043cd4d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x461198
call fcn.0043cea5
push eax
push 0x461188
push 0x472458
call fcn.0043ce53
add esp, 0x10
mov eax, 0x472458
ret

Function at 0x403ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404003
xor eax, eax
ret
and al, 0x10
neg al
sbb eax, eax
neg eax
inc eax
ret

Function at 0x4040c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call fcn.0043f009
add esp, 0xc
ret

Function at 0x405170
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push 1
call fcn.004058f0
add esp, 4
call fcn.00404360
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
mov byte [0x496010], 1
mov dword [0x49600c], ecx
add esp, 0x24
ret
Function at 0x40b8a0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.00440120
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40b8e9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x40b8e9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x46eaf8
call fcn.00440c6d
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.004407bd
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40b9eb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x40b9a6
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x40b9a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40b9a6
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x40b9a6
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.00440120
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x40b9a6
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.00440c2c
add esp, 8
test eax, eax
je 0x40b9eb
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e648
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43e668
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004460e6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43e689
test byte [esp + 8], 2
je 0x43e689
mov dword [0x49d56c], 0xd
mov dword [0x49d570], 5
jmp 0x43e664
xor eax, eax
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x401044
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x401050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401077
pop esi
pop ebp
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x401097
pop esi
pop ebp
xor al, al
pop ebx
ret
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4010ac
pop esi
pop ebp
xor al, al
pop ebx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
mov esi, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
push ebp
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401000
add esp, 0xc
test al, al
pop edi
push ebx
jne 0x4010e9
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
xor al, al
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x408160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x406015
lea edi, [esi - 0x5015]
push edi
or ebp, 0xffffffff
jmp 0x408182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408178
mov eax, 1
add ebx, ebx
jne 0x40819b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408190
jne 0x4081ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408190
xor ecx, ecx
sub eax, 3
jb 0x4081c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408232
mov ebp, eax
add ebx, ebx
jne 0x4081cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4081d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4081fc
inc ecx
add ebx, ebx
jne 0x4081e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4081dd
jne 0x4081f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4081dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40821c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40820d
jmp 0x40817e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40821c
add edi, ecx
jmp 0x40817e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40823a
cmp byte [edi], 0
jne 0x40823a
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 al, bl
loop 0x40823f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4082ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x918c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x91dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40826c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x91e4]
or eax, eax
je 0x4082a8
mov dword [ebx], eax
add ebx, 4
jmp 0x408289
call dword [esi + 0x91e0]
mov ebp, dword [esi + 0x91e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4082e2
sub esp, 0xffffff80
jmp 0x402320

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403e80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push 0x100
push eax
push ecx
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x120]
push 0x100
push ecx
push 0x409820
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp]
mov edx, eax
mov ecx, eax
and edx, 0xff
push edx
xor edx, edx
shr ecx, 4
mov dl, ah
and ecx, 0xff
shr eax, 0xc
push ecx
and eax, 0xff
push edx
push eax
mov eax, dword [esp + 0x220]
push str._02.2X___02.2X___02.2X___02.2X_
push eax
call sub.MFC42.DLL_CString::Format
mov al, 1
add esp, 0x224
ret 4
Function at 0x4054c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00406264
push 0x409e74
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x409d08]
mov byte [esp + 0x24], 2
mov eax, dword [eax - 8]
lea esi, [eax - 1]
test esi, esi
jl 0x405531
mov ecx, dword [0x409d08]
mov dl, 0xa4
mov al, byte [ecx + esi]
lea ecx, [esp + 8]
sub dl, al
push edx
call sub.MFC42.DLL_CString::operator_2
sub esi, 2
jns 0x405515
push 0x409a18
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x30]
push 0x2e
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
push 2
lea ecx, [esp + 0x14]
push 2
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 1
lea edx, [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [esi]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
push edx
push eax
push 0x409b6c
lea ecx, [esp + 0x1c]
push str._s_swin_s_s.exe
push ecx
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x405630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00406264
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.00406264
mov eax, dword [0x409d08]
push 0x4091c8
push eax
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405699
push 0x409a2c
lea ecx, [esp + 0xc]
call fcn.004062e2
jmp 0x4056c5
mov eax, dword [0x409d08]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4056c5
mov al, byte [eax + esi]
mov cl, 0xa3
sub cl, al
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [0x409d08]
add esi, 2
cmp esi, dword [eax - 8]
jl 0x4056a7
push 1
lea edx, [esp + 0x1c]
push 2
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [esi]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sreg_s.exe
push eax
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x100627b9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x101a7274], 0x1b4a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1006139d
lea ecx, [0x10061c2f]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x68], edx
mov dword [esp + 0x38], 0x152600
mov dword [0x101a7278], 0x894
mov edx, dword [0x101a7260]
mov dword [esp + 0x48], edx
mov edx, dword [0x101a7264]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101a7268]
mov dword [esp + 0x5c], edx
mov edx, dword [0x101a726c]
mov dword [esp + 0x34], edx
mov edx, dword [0x101a7270]
mov dword [esp + 0x2c], edx
mov dword [0x101a7274], 0x1e0a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10062888
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100620b0
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101a7278], 0x5b1
mov dword [esp + 0x10], eax
jmp 0x100628fd
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x100628ab
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x100628bf
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10062888
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [0x101a7278], 0xe2d
mov dword [0x101a7274], 0xf67
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x54], edx
call fcn.100619fb
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1006284f
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x48be3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x48be3a
lcall 0x5de5, 0x8b10c483
jmp loc.009951a0
Function at 0x405940
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4332cf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x48
mov dword [ebx + 4], 1
call fcn.0040888a
mov edi, eax
mov dword [ebp - 0x10], edi
push 0x48
push 0
push edi
mov dword [ebp - 4], 0
call fcn.00420c30
mov ecx, dword [ebx + 8]
lea esi, [edi + 0x10]
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [edi], vtable.LanxinAppContext.0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004049b0
mov dword [esi], eax
lea eax, [edi + 0x18]
push 2
push eax
call fcn.00407eea
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x10], edi
mov edx, dword [edi]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0x4408e0
mov ecx, edi
call dword [edx + 4]
push 0x44
call fcn.0040888a
push 0x44
mov edi, eax
push 0
push edi
mov dword [ebp + 8], edi
call fcn.00420c30
mov esi, dword [ebx + 8]
push 2
push edi
call fcn.00407eea
mov dword [edi + 0x30], 0
add esp, 0x18
mov dword [edi + 0x34], 0
mov ecx, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], ebx
mov dword [ebx + 0xc], edi
call fcn.00403310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a303
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x45b550
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0
push ebx
push edi
push esi
mov eax, 0x3e8
mov ebx, 0x4a91d0
cmp dword [ebx], eax
setl dl
movzx eax, dl
test eax, eax
je 0x45b597
mov eax, 0x4d27c4
mov edx, eax
mov eax, 0x4a91d0
mov esi, dword [eax]
lea eax, [edx + esi*4]
push eax
lea eax, [ebp + 8]
mov edx, eax
pop esi
mov edi, dword [edx]
mov dword [esi], edi
inc dword [0x4a91d0]
jmp 0x45b5a5
mov eax, str.Heap_Overflow
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45b630
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push edi
push esi
lea eax, [ebp - 4]
mov dword [eax], 0
lea eax, [ebp - 4]
mov ebx, 1
lea ecx, [ebp + 8]
mov ecx, dword [ecx]
sub ecx, ebx
mov ebx, ecx
cmp dword [eax], ebx
jg 0x45b6a7
xor eax, eax
mov ebx, 0x4a91d0
cmp dword [ebx], eax
setg dl
movzx eax, dl
test eax, eax
je 0x45b692
dec dword [0x4a91d0]
mov eax, 0x4d27c4
mov edx, eax
mov eax, 0x4a91d0
mov esi, dword [eax]
lea eax, [edx + esi*4]
push dword [eax]
call fcn.0045b4f0
jmp 0x45b6a0
mov eax, str.Heap_Underflow
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea eax, [ebp - 4]
inc dword [eax]
jmp 0x45b642
mov eax, 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4