joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x401047
mov eax, dword [esp + 8]
push esi
push 1
push eax
call sub.gnwie.dll_WIgetvar
mov esi, eax
mov ecx, dword [esi + 0x10]
add esp, 8
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40103f
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
push 0x601
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
call dword [sym.imp.MSVCR80.dll_exit]
pop esi
pop edi
ret

Function at 0x4011d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10c
mov eax, dword [0x446e40]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, 1
cmp ebp, esi
push edi
mov edi, dword [esp + 0x124]
jle 0x401269
nop
mov ecx, dword [edi + esi*4]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401208
sub eax, ebx
cmp eax, 3
jbe 0x401262
cmp byte [ecx], 0x2d
jne 0x401262
cmp byte [ecx + 2], 0x3d
jne 0x401262
movsx eax, byte [ecx + 1]
push eax
call dword [sym.imp.MSVCR80.dll_toupper]
add esp, 4
cmp eax, 0x49
je 0x40124e
cmp eax, 0x50
jne 0x401262
mov ecx, dword [edi + esi*4]
add ecx, 3
push ecx
call dword [sym.imp.MSVCR80.dll_atol]
mov dword [esp + 0x18], eax
jmp 0x40125f
mov edx, dword [edi + esi*4]
add edx, 3
push edx
call dword [sym.imp.MSVCR80.dll_atoi]
mov dword [esp + 0x14], eax
add esp, 4
add esi, 1
cmp esi, ebp
jl 0x401200
push 0x100
lea ebx, [esp + 0x1c]
call fcn.00401050
add esp, 4
test eax, eax
je 0x4012ba
push 0x10
push str.SAP_Graphics_Fatal_Error
mov eax, ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4012b2
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0x601
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x6f
call dword [sym.imp.MSVCR80.dll_exit]
lea edx, [ebp*4]
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4012d4
xor ax, ax
jmp 0x40133c
xor edx, edx
test ebp, ebp
jle 0x4012f0
xor ecx, ecx
lea esp, [esp]
mov esi, dword [edi + ecx*4]
add edx, 1
mov dword [eax + ecx*4], esi
movsx ecx, dx
cmp ecx, ebp
jl 0x4012e0
push 1
push eax
push ebp
call sub.gnwie.dll_WIinitialise
movzx esi, ax
add esp, 0xc
test si, si
je 0x4012cf
push 1
push esi
call sub.gnwie.dll_WIgetvar
mov edx, dword [0x446e64]
mov ecx, dword [0x446e60]
push edx
push ecx
push str.hInst__X__hPrev__X_n
push esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call sub.gnwie.dll_Wtrace
push sym.gnsux.exe_cbexit
push esi
call sub.gnwie.dll_Wregexitproc
add esp, 0x20
mov ax, si
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439534
add esp, 0x10c
ret
Function at 0x401550
Capabilities:
Terminate process

Disassembly:
sub esp, 0x8c
mov eax, dword [0x446e40]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
mov dword [esp + 0xc], eax
mov al, byte [ebx]
xor esi, esi
test al, al
push edi
mov ecx, ebx
lea edi, [esi + 1]
je 0x4015af
cmp al, 0x22
jne 0x401596
xor edx, edx
test esi, esi
sete dl
mov esi, edx
jmp 0x4015a5
cmp al, 0x20
je 0x40159e
test al, al
jne 0x4015a5
test esi, esi
jne 0x4015a5
add edi, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x401587
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
lea eax, [edi*4 + 4]
push eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push 0x80
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4015e0
lea ecx, [esp + 0x18]
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4015f2
sub ecx, esi
add eax, ecx
je 0x4016f6
add eax, 2
push eax
call ebp
mov edi, eax
add esp, 4
test edi, edi
jne 0x40161c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401623
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.MSVCR80.dll_memcpy
lea eax, [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401647
mov ebp, dword [esp + 0x14]
sub eax, ecx
lea esi, [eax + edi + 1]
mov eax, ebx
mov dword [ebp], edi
mov edi, 1
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401667
sub eax, ecx
add eax, 1
push eax
push ebx
push esi
call sub.MSVCR80.dll_memcpy
mov eax, esi
add esp, 0xc
xor ebx, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401687
sub eax, ecx
add eax, 1
test eax, eax
mov dword [ebp + 4], esi
jle 0x4016fa
lea ecx, [esi + 1]
mov edx, eax
movsx eax, byte [esi]
sub eax, 0
je 0x4016ec
sub eax, 0x20
je 0x4016d7
sub eax, 2
je 0x4016bb
add esi, 1
add ecx, 1
jmp 0x4016ef
xor eax, eax
test ebx, ebx
sete al
mov byte [esi], 0
mov ebx, eax
test ebx, ebx
je 0x4016cf
mov dword [ebp + edi*4], ecx
add esi, 1
add ecx, 1
jmp 0x4016ef
test ebx, ebx
jne 0x4016e4
add edi, 1
mov byte [esi], bl
mov dword [ebp + edi*4], ecx
add esi, 1
add ecx, 1
jmp 0x4016ef
add edi, 1
sub edx, 1
jne 0x4016a1
jmp 0x4016fa
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa4]
push ebp
push edi
mov dword [0x446e60], ecx
mov dword [0x446e64], edx
call fcn.00426150
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00439534
add esp, 0x8c
ret 0x10
Function at 0x40c670
Capabilities:
Enumerate pe sections

Disassembly:
test edx, edx
push esi
mov esi, eax
jne 0x40c67d
mov ax, 1
pop esi
ret
test esi, esi
jne 0x40c687
mov ax, 2
pop esi
ret
test ecx, ecx
jne 0x40c691
mov ax, 4
pop esi
ret
mov eax, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
push edi
movsx edi, word [esp + 0xc]
cmp edi, 3
ja case.0x40c6a2.0
jmp dword [edi*4 + 0x40c724]
movzx edx, word [esi + 8]
movzx esi, word [esi + 6]
add edx, esi
imul edx, edx, 0x64
imul eax, eax, 0x64
mov dword [ecx], edx
mov dword [ecx + 8], edx
cdq
sub eax, edx
sar eax, 1
pop edi
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], 0
xor ax, ax
pop esi
ret
mov dword [ecx], 0
movzx edx, word [esi + 8]
movzx esi, word [esi + 6]
add edx, esi
jmp 0x40c705
movzx edi, word [esi + 8]
movzx esi, word [esi + 6]
sub edx, edi
sub edx, esi
jmp 0x40c6b3
mov dword [ecx], 0
movzx edi, word [esi + 8]
movzx esi, word [esi + 6]
sub edx, edi
sub edx, esi
imul eax, eax, 0x64
imul edx, edx, 0x64
mov dword [ecx + 4], edx
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 8], eax
mov eax, dword [ecx + 4]
pop edi
mov dword [ecx + 0xc], eax
xor ax, ax
pop esi
ret

Function at 0x40c850
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov bx, ax
jne 0x40c864
pop edi
mov ax, 1
pop ebx
ret
cmp dword [esp + 0x14], 0
jne 0x40c872
pop edi
mov ax, 4
pop ebx
ret
mov eax, dword [edi + 0x14]
movsx edx, dx
push ebp
push esi
movsx esi, word [esp + 0x18]
shl edx, 4
add edx, dword [edi + 4]
cmp esi, 3
ja case.0x40c88a.0
jmp dword [esi*4 + 0x40c940]
movzx esi, word [edx + 6]
movsx eax, bx
add esi, eax
mov eax, 1
lea edi, [eax + 1]
jmp 0x40c8f3
sub eax, ecx
movzx ecx, word [edx + 6]
movsx edx, bx
sub eax, 2
mov esi, eax
add ecx, edx
jmp 0x40c8eb
mov esi, dword [edi + 0x18]
sub eax, ecx
sub eax, 2
mov ecx, eax
movzx eax, word [edx + 6]
sub esi, eax
movsx edx, bx
sub esi, edx
mov eax, 1
sub esi, 1
lea edi, [eax + 1]
jmp 0x40c8f3
movzx eax, word [edx + 6]
mov esi, ecx
mov ecx, dword [edi + 0x18]
movsx edx, bx
sub ecx, eax
sub ecx, edx
sub ecx, 1
mov eax, 2
lea edi, [eax - 1]
movsx ebx, ax
mov eax, 0x64
cdq
idiv ebx
mov edx, dword [esp + 0x1c]
movsx edi, di
add ebx, esi
mov ebp, eax
imul eax, esi
mov dword [edx], eax
imul ebx, ebp
mov eax, 0x64
cdq
idiv edi
add edi, ecx
pop esi
pop ebp
mov dword [esp + 0xc], eax
imul edi, dword [esp + 0xc]
mov edx, eax
mov eax, dword [esp + 0x14]
imul edx, ecx
mov dword [eax + 0xc], edi
mov dword [eax + 8], ebx
pop edi
mov dword [eax + 4], edx
xor ax, ax
pop ebx
ret
Function at 0x43817c
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x118
mov eax, dword [0x446e40]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push edi
mov edi, dword [ebp + 0x78]
mov eax, edi
call fcn.00437c9c
mov ebx, eax
test ebx, ebx
je 0x4383a8
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
cmp byte [ebp + 0x7c], 0
pop ecx
jne 0x4381c8
push 0x43a7f4
push edi
call fcn.0043811c
pop ecx
pop ecx
push esi
push 1
push dword [ebp + 0x7c]
push edi
call fcn.00438150
mov esi, str.____n
push esi
push edi
call fcn.0043811c
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x438217
push str.06:52:56
push str.Feb_13_2008
push str.____Build:__s___s_n
push edi
call fcn.0043811c
add ebx, 0x28
push ebx
push str.____trace_file__s_n
push edi
call fcn.0043811c
add esp, 0x1c
mov ebx, str.opened
jmp 0x43821c
mov ebx, str.closed
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__ctime64]
push eax
push ebx
push str._____s_on__s
push edi
call fcn.0043811c
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x43837f
lea eax, [ebp - 0x9c]
push eax
mov ebx, 0x43f798
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x8c]
cmp eax, 3
jae 0x438271
mov ebx, dword [eax*4 + 0x446c50]
push eax
push ebx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str.____32_Bit_Windows_Version__ld._ld__Build__ld__under_Windows__s___ld__n
push edi
call fcn.0043811c
add esp, 0x1c
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 0x30]
push str.____Processor_Type__lX_n
push edi
call fcn.0043811c
push esi
push edi
call fcn.0043811c
mov edi, dword [sym.imp.KERNEL32.dll_GetProfileStringA]
add esp, 0x14
push 0x20
lea eax, [ebp - 8]
push eax
mov ebx, 0x43ab1e
push ebx
push str.sLanguage
mov esi, str.intl
push esi
call edi
push 0x80
lea eax, [ebp - 0x88]
push eax
push ebx
push str.sCountry
push esi
call edi
push 0
push str.iCountry
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push 0x20
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.sShortDate
push esi
call edi
push 0x10
lea eax, [ebp + 0x4c]
push eax
push ebx
push str.sCurrency
push esi
call edi
push 0x10
lea eax, [ebp + 0x5c]
push eax
push ebx
push str.sThousand
push esi
call edi
push 0x10
lea eax, [ebp + 0x3c]
push eax
push ebx
push str.sDecimal
push esi
call edi
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 8]
push eax
push str.____Intl:_Ctry__s__s___d__n
push dword [ebp + 0x78]
call fcn.0043811c
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
push str.__________Date__s__Cur__s__Th__s_Dec__s_n
push dword [ebp + 0x78]
call fcn.0043811c
mov edi, dword [ebp + 0x78]
add esp, 0x2c
mov esi, str.____n
push esi
push edi
call fcn.0043811c
push 0
push dword [ebp + 0x7c]
push edi
call fcn.00438150
add esp, 0x14
cmp byte [ebp + 0x7c], 0
pop esi
je 0x4383a8
push 0x43a7f4
push edi
call fcn.0043811c
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00439534
add ebp, 0x70
leave
ret
Function at 0x438616
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [0x44858c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
inc edi
test ebx, ebx
jne 0x43863b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
test ebx, ebx
mov dword [0x44858c], ebx
je 0x438697
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
push 0xc
call ebp
mov esi, eax
test esi, esi
pop ecx
je 0x438697
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xc
push 0
push esi
call sub.MSVCR80.dll_memset
mov dword [esi + 4], edi
imul edi, edi, 0x14
push edi
call ebp
add esp, 0x10
test eax, eax
mov dword [esi + 8], eax
je 0x438697
push edi
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 8]
xor eax, eax
inc eax
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 8]
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [ecx + 0x3c], eax
and dword [esi], 0
jmp 0x438699
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x438b96
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x448594], ebx
push edi
mov edi, dword [0x446cc4]
jne 0x438bb0
push 0x40
call fcn.00438b5b
pop ecx
cmp edi, dword [0x448594]
jle 0x438bbf
xor eax, eax
jmp 0x438c4a
cmp byte [esp + 0x14], bl
push esi
je 0x438bf7
push dword [esp + 0x10]
push dword [esp + 0x18]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [0x448590]
push ebx
push ebx
push ebx
push 2
push eax
mov dword [ecx + edi*8], eax
lea esi, [ecx + edi*8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
jmp 0x438c0d
push dword [esp + 0x14]
mov eax, dword [0x448590]
push 2
lea esi, [eax + edi*8]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
mov ecx, dword [0x446cc4]
mov eax, dword [0x446cc8]
jmp 0x438c26
mov edx, dword [0x448590]
cmp dword [edx + ecx*8], ebx
je 0x438c2c
inc ecx
cmp ecx, eax
jl 0x438c1a
jmp 0x438c36
cmp ecx, eax
mov dword [0x446cc4], ecx
jne 0x438c41
inc eax
mov dword [0x446cc8], eax
mov dword [0x446cc4], eax
mov eax, dword [esi]
neg eax
sbb eax, eax
and eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x439534
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446e40]
jne 0x43953e
repz ret
jmp fcn.0043991e
Function at 0x4415b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x4415d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4415d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4415c8
mov eax, 1
add ebx, ebx
jne 0x4415eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4415e0
jne 0x4415fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4415e0
xor ecx, ecx
sub eax, 3
jb 0x441610
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x441682
mov ebp, eax
add ebx, ebx
jne 0x44161b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x441628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44164c
inc ecx
add ebx, ebx
jne 0x441638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44162d
jne 0x441649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44162d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44166c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44165d
jmp 0x4415ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44166c
add edi, ecx
jmp 0x4415ce
pop esi
mov edi, esi
mov ecx, 0x117e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44168a
cmp byte [edi], 5
jne 0x44168a
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 0x44168f
lea edi, [esi + 0x3f000]
mov eax, dword [edi]
or eax, eax
je 0x4416fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46e98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46f38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4416bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46f3c]
or eax, eax
je 0x4416f8
mov dword [ebx], eax
add ebx, 4
jmp 0x4416d9
call dword [esi + 0x46f44]
mov ebp, dword [esi + 0x46f40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x441732
sub esp, 0xffffff80
jmp 0x41ba74
Function at 0x401fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebx], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402054
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
test eax, eax
je 0x40204d
add eax, 2
push eax
call fcn.0040cd7a
mov dword [ebx], eax
mov ecx, dword [esi]
add ecx, 2
push ecx
push 0
push eax
call fcn.0040f2d0
mov eax, dword [esi]
mov ecx, dword [ebx]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ecx
ret

Function at 0x402060
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4261d0]
xor eax, esp
mov dword [esp + 0x414], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x20c]
push ecx
push 0
push 0x41f2f0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea ecx, [esp + 0x210]
call fcn.00402570
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov eax, esi
call fcn.0040d217
add esp, 0x418
ret

Function at 0x402150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402167
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402198
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402194
cmp esi, eax
jae 0x402198
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402184
cmp esi, eax
jb 0x40219e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41bb19
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4261d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.W3Client.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
lea eax, [esi + 0x88]
push eax
mov byte [esp + 0x18], 3
call fcn.00403a60
lea ecx, [esi + 0xa4]
push ecx
mov byte [esp + 0x18], 4
call fcn.00403a60
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x402930
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2218
call fcn.0041a460
mov eax, dword [0x4261d0]
xor eax, esp
mov dword [esp + 0x2214], eax
xor eax, eax
test esi, esi
je 0x402a79
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x10], 1
mov word [esp + 0x18], ax
call fcn.0040f2d0
xor edx, edx
push 0x1ffe
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.0040f2d0
add esp, 0x18
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360GameBox.exe
push 0x80000002
mov dword [esp + 0x18], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4029ec
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4029ec
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.0040daa9
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x402a1e
push 0x104
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0040daa9
add esp, 8
xor edx, edx
mov word [eax + 2], dx
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a25
sub eax, edx
sar eax, 1
jne 0x402a4d
xor eax, eax
mov ecx, dword [esp + 0x2214]
xor ecx, esp
call fcn.0040d217
add esp, 0x2218
ret
push 0x1000
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x402a36
lea eax, [esp + 0xc]
mov edx, esi
call fcn.004028d0
mov eax, 1
mov ecx, dword [esp + 0x2214]
xor ecx, esp
call fcn.0040d217
add esp, 0x2218
ret
Function at 0x402a90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41be32
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4261d0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov eax, dword [0x4261d0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x228], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x4282cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4282cc
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
push 0x206
lea ecx, [esp + 0x1a]
mov dword [esp + 0x22c], ebx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], ax
call fcn.0040f2d0
add esp, 0xc
lea esi, [esp + 0x14]
call fcn.00402930
test eax, eax
je 0x402b61
push str.360verify.dll
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b61
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402b44
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402490
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040d217
add esp, 0x220
ret