joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4198d0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0xc14
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x21e]
push ebx
push eax
mov word [esp + 0x224], bx
call fcn.00435740
add esp, 0xc
xor eax, eax
jmp 0x419910
movzx ecx, word [eax + 0x561700]
mov word [esp + eax + 0x218], cx
add eax, 2
cmp cx, bx
jne 0x419910
push 0x206
lea ecx, [esp + 0x62e]
push ebx
push ecx
mov word [esp + 0x634], bx
call fcn.00435740
push 0x206
lea edx, [esp + 0x22]
push ebx
push edx
mov word [esp + 0x28], bx
call fcn.00435740
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.0042eba4
push 0x3e6
lea edx, [esp + 0x83e]
push ebx
mov word [eax], bx
push edx
mov word [esp + 0x844], bx
call fcn.00435740
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x438]
push str._sgswb.log
push ecx
call fcn.0042ec11
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 0x420]
push edx
call esi
test eax, eax
je 0x419b0a
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4199d1
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4199f0
push edi
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x42c]
push str._s_s.txt
push edx
call fcn.0042ec11
mov ecx, dword [esp + 0xc34]
lea eax, [esp + 0xc38]
push eax
push ecx
lea edx, [esp + 0x84c]
push 0x1f3
push edx
call fcn.0042f7da
add esp, 0x20
lea eax, [esp + 0x424]
push eax
mov word [esp + 0xc1e], bx
xor edi, edi
call esi
test eax, eax
je 0x419a64
mov edi, 1
lea ecx, [esp + 0x424]
push 0x56173c
push ecx
call fcn.0042f8bb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x419b09
cmp edi, ebx
jne 0x419aa1
push esi
push 2
lea edx, [esp + 0x18]
push 1
push edx
mov dword [esp + 0x20], 0xfeff
call fcn.0042fa2d
add esp, 0x10
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x419ab0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419ab0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x83c]
push 1
push ecx
call fcn.0042fa2d
push esi
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], 0xd
call fcn.0042fa2d
push esi
push 2
lea eax, [esp + 0x34]
push 1
push eax
mov dword [esp + 0x3c], 0xa
call fcn.0042fa2d
push esi
call fcn.0042fb21
add esp, 0x34
pop edi
mov ecx, dword [esp + 0xc18]
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb95
add esp, 0xc14
ret
Function at 0x419b30
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov eax, 0x203c
call fcn.00443760
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x2038], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x22e]
push ebx
push eax
mov word [esp + 0x234], bx
call fcn.00435740
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x561700]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x419b70
push 0x206
lea ecx, [esp + 0x63e]
push ebx
push ecx
mov word [esp + 0x644], bx
call fcn.00435740
push 0x206
lea edx, [esp + 0x32]
push ebx
push edx
mov word [esp + 0x38], bx
call fcn.00435740
add esp, 0x18
push 0x104
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.0042eba4
push 0x7fe
lea edx, [esp + 0x84e]
push ebx
mov word [eax], bx
push edx
mov word [esp + 0x854], bx
call fcn.00435740
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x448]
push str._sgswb.log
push ecx
call fcn.0042ec11
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 0x430]
push edx
call esi
test eax, eax
je 0x419dba
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419c31
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x22]
lea edx, [esp + 0x638]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x419c50
lea eax, [esp + 0x638]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x438]
push str._s_s.txt
push edx
call fcn.0042ec11
mov ecx, dword [esp + 0x205c]
lea eax, [esp + 0x2060]
push eax
push ecx
lea edx, [esp + 0x858]
push 0x3ff
push edx
call fcn.0042f7da
push ebx
call fcn.0042f3da
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], edx
call fcn.0043036b
mov edx, dword [eax]
lea ecx, [esp + 0x868]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
lea ecx, [esp + 0x1084]
push str.__d__d__d__d__d__d_:_s
push ecx
call fcn.0042ec11
add esp, 0x4c
lea edx, [esp + 0x430]
push edx
mov word [esp + 0x1042], bx
xor edi, edi
call esi
test eax, eax
je 0x419d14
mov edi, 1
lea eax, [esp + 0x430]
push 0x56173c
push eax
call fcn.0042f8bb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x419dba
cmp edi, ebx
jne 0x419d51
push esi
push 2
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x24], 0xfeff
call fcn.0042fa2d
add esp, 0x10
lea eax, [esp + 0x1040]
lea edx, [eax + 2]
jmp 0x419d60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419d60
sub eax, edx
sar eax, 1
push esi
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x1048]
push 1
push eax
call fcn.0042fa2d
push esi
push 2
lea ecx, [esp + 0x28]
push 1
push ecx
mov dword [esp + 0x30], 0xd
call fcn.0042fa2d
push esi
push 2
lea edx, [esp + 0x38]
push 1
push edx
mov dword [esp + 0x40], 0xa
call fcn.0042fa2d
push esi
call fcn.0042fb21
add esp, 0x34
mov ecx, dword [esp + 0x2044]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb95
add esp, 0x203c
ret
Function at 0x41a0b0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x63c
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x638], eax
xor eax, eax
push esi
xor esi, esi
push 0x206
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
lea eax, [esp + 0x2a]
push esi
push eax
mov word [esp + 0x1c], si
mov word [esp + 0x30], si
call fcn.00435740
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0042ebd4
push 0x206
lea ecx, [esp + 0x446]
push esi
push ecx
mov word [esp + 0x44c], si
call fcn.00435740
push 0x206
lea edx, [esp + 0x24a]
push esi
push edx
mov word [esp + 0x250], si
call fcn.00435740
add esp, 0x24
push 0x104
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esp + 0x44c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41a1c2
mov eax, dword [esp + 4]
push eax
push str._08X
push edi
call fcn.0042ec11
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.0042eb95
add esp, 0x63c
ret
mov eax, 0x55fd30
mov edx, edi
sub edx, eax
jmp 0x41a1d0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x41a1d0
mov ecx, dword [esp + 0x63c]
pop esi
xor ecx, esp
call fcn.0042eb95
add esp, 0x63c
ret
Function at 0x41b200
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0xa]
push esi
push eax
mov word [esp + 0x10], si
call fcn.00435740
push 0x206
lea ecx, [esp + 0x21e]
push esi
push ecx
mov word [esp + 0x224], si
call fcn.00435740
add esp, 0x18
push esi
push 0x2b
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x41b260
mov ecx, dword [str._shiqiang_]
mov edx, dword [0x5620a0]
mov dword [eax], ecx
mov ecx, dword [0x5620a4]
mov dword [eax + 4], edx
mov edx, dword [0x5620a8]
mov dword [eax + 8], ecx
mov ecx, dword [0x5620ac]
mov dword [eax + 0xc], edx
mov dx, word [0x5620b0]
mov dword [eax + 0x10], ecx
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [eax + 0x14], dx
lea eax, [esp + 8]
push eax
call ebx
test eax, eax
jne 0x41b2c1
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
jmp 0x41b2d0
movzx ecx, word [esp + eax + 8]
mov word [esp + eax + 0x210], cx
add eax, 2
cmp cx, si
jne 0x41b2d0
lea eax, [esp + 0x210]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x41b2f0
mov edx, dword [str.wnsoft.ini]
mov ecx, dword [0x5620b8]
mov dword [eax], edx
mov edx, dword [0x5620bc]
mov dword [eax + 4], ecx
mov ecx, dword [0x5620c0]
mov dword [eax + 8], edx
mov edx, dword [0x5620c4]
mov dword [eax + 0xc], ecx
mov cx, word [0x5620c8]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push edx
mov word [eax + 0x14], cx
call ebx
test eax, eax
pop ebx
je 0x41b3b2
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x20c]
push eax
push ecx
push str.OnlyIdentifier1
push str.Globals
call esi
mov eax, dword [edi]
lea edx, [esp + 0x20c]
push edx
add eax, 0x208
push eax
push str.OnlyIdentifier2
push str.Globals
call esi
mov edx, dword [edi]
lea ecx, [esp + 0x20c]
push ecx
add edx, 0x410
push edx
push str.OnlyIdentifier3
push str.Globals
call esi
mov ecx, dword [edi]
lea eax, [esp + 0x20c]
push eax
add ecx, 0x618
push ecx
push str.OnlyIdentifier4
push str.Globals
call esi
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.0042eb95
add esp, 0x414
ret
Function at 0x41b3d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.software
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b4db
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push str.ShiQiang
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b4db
mov eax, dword [esi]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
mov edx, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edx
push 1
push 0
push str.OnlyIdentifier1
push eax
call ebx
mov ecx, dword [esi]
add ecx, 0x208
push ecx
call edi
mov ecx, dword [esp + 0xc]
lea edx, [eax + eax + 2]
mov eax, dword [esi]
push edx
add eax, 0x208
push eax
push 1
push 0
push str.OnlyIdentifier2
push ecx
call ebx
mov edx, dword [esi]
add edx, 0x410
push edx
call edi
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
add ecx, 0x410
push ecx
push 1
push 0
push str.OnlyIdentifier3
push edx
call ebx
mov eax, dword [esi]
add eax, 0x618
push eax
call edi
mov edx, dword [esi]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
add edx, 0x618
push edx
push 1
push 0
push str.OnlyIdentifier4
push eax
call ebx
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop ebx
pop esi
add esp, 8
ret

Function at 0x41bca0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x51ce5b
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0x54
call fcn.0042e8a4
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x41bce6
push eax
call fcn.0041b910
jmp 0x41bce8
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x44], eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x41bcf8
sub ecx, edi
push ecx
push ebx
lea ecx, [eax + 8]
call fcn.004053d0
mov eax, dword [esi + 0x44]
mov dword [eax + 4], 1
mov ecx, dword [esi + 0x44]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.004053d0
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x41be50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x41bd5e
cmp eax, 0xffffffff
je 0x41bd5e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret
Function at 0x41bd70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x51eaeb
mov eax, dword fs:[0]
push eax
push ebp
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1c]
push 0x54
call fcn.0042e8a4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x41bdb8
push eax
call fcn.0041b910
jmp 0x41bdba
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x44], eax
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x41bdd0
sub ecx, edi
push ecx
push ebp
lea ecx, [eax + 8]
call fcn.004053d0
mov eax, dword [esi + 0x44]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x44]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.004053d0
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x41be50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x41be36
cmp eax, 0xffffffff
je 0x41be36
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0xc
ret 4
Function at 0x425d80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51c73b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042de1d
push 4
mov dword [esp + 0x20], 0
call fcn.0042e8a4
mov edi, eax
add esp, 4
test edi, edi
je 0x425e00
call fcn.0042e1ed
mov dword [edi], eax
call fcn.0042e021
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042e43d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x425df5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042e45e
jmp 0x425e02
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x428a50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
push edi
mov esi, ecx
mov edi, edx
jle 0x428b42
add ebp, 0xffffffff
shr ebp, 3
add ebp, 1
lea ebx, [ebx]
movzx eax, byte [esi]
mov byte [edi], al
movzx ecx, byte [esi + 1]
mov byte [edi + 1], cl
movzx edx, byte [esi + 2]
mov byte [edi + 2], dl
movzx eax, byte [esi + 3]
mov byte [edi + 3], al
movzx ecx, byte [esi + 4]
mov byte [edi + 4], cl
movzx edx, byte [esi + 5]
mov byte [edi + 5], dl
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx ecx, byte [esi + 7]
mov byte [edi + 7], cl
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [ebx + 0x80]
mov dword [esp + 0xc], edx
call fcn.004280e0
movzx ecx, byte [ebx + 0x100]
xor byte [edi], cl
movzx edx, byte [ebx + 0x101]
xor byte [edi + 1], dl
movzx eax, byte [ebx + 0x102]
xor byte [edi + 2], al
movzx ecx, byte [ebx + 0x103]
xor byte [edi + 3], cl
movzx edx, byte [ebx + 0x104]
xor byte [edi + 4], dl
movzx eax, byte [ebx + 0x105]
xor byte [edi + 5], al
movzx ecx, byte [ebx + 0x106]
xor byte [edi + 6], cl
movzx edx, byte [ebx + 0x107]
xor byte [edi + 7], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esi, 8
add edi, 8
sub ebp, 1
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
jne 0x428a80
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042eb95
add esp, 0xc
ret
Function at 0x42a030
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51dc92
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x562a58
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.0042ad80
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00425d80
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x579b9c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.0042af40
test eax, eax
jne 0x42a131
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x42a120
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x42a131
push ebx
call fcn.0041fe30
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x42b800
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x42b8a8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x42b861
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x42b88a
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00435740
jmp 0x42b887
mov ecx, dword [esi - 4]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.00433d70
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42b832
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x42b8b0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x42b967
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42b905
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42b94d
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x57414c]
je 0x42b91f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42b93a
test al, 0x40
je 0x42b931
mov ecx, dword [ebx + 0x20]
jmp 0x42b938
test al, al
jns 0x42b94d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x42b94d
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x42b8d2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42bb10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp word [ebp], 0x5a4d
je 0x42bb21
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x42bb34
pop ebx
xor eax, eax
pop ebp
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x42bb6b
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
je 0x42bc20
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
add edx, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call fcn.00433d70
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
push esi
add eax, ecx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.0042b800
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x42bbed
push eax
mov eax, esi
call fcn.0042b970
add esp, 4
push esi
call fcn.0042b9f0
add esp, 4
test eax, eax
je 0x42bc1b
push esi
call fcn.0042b8b0
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
add esp, 4
test eax, eax
je 0x42bc2e
add eax, edi
je 0x42bc1b
push 0
push 1
push edi
call eax
test eax, eax
jne 0x42bc27
call fcn.0042bce0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret