joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478020
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47803c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4a7978]
push eax
push esi
mov ecx, edi
call fcn.004784e0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x478073
test eax, eax
jne 0x478077
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00478130
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x4780f6
test esi, esi
je 0x4780f6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004013c0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x4780d5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x4780d5
push 1
push 0x8000012f
call fcn.004013c0
add esp, 8
push esi
call edi
test eax, eax
jne 0x4780b0
mov edx, dword [0x4a7978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4780ee
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x478110
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00478130
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004782b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4782b0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00491c20
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x478430
xor cl, cl
mov eax, edi
call fcn.00478450
test eax, eax
jne 0x4782e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a7978]
push eax
push ebp
mov ecx, edi
call fcn.004784e0
test eax, eax
je 0x478308
xor eax, eax
mov dword [0x4ad2ac], eax
jmp 0x47830d
mov eax, dword [0x4ad2ac]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x499861
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x478353
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x47835b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ad2a8]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x4785b0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x478408
lea ecx, [esp + 0x10]
push ecx
push 0x477130
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4783c5
mov edx, dword [esp + 0xc48]
call fcn.00477c70
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00476190
mov edx, dword [esp + 0xc48]
call fcn.00477c70
mov edx, dword [0x4a7978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x478430
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4ad2ac]
cmp eax, ebx
je 0x478430
cmp eax, 1
setg al
mov dword [0x4ad2ac], ebx
cmp al, bl
je 0x478430
mov edx, ebp
call fcn.00477c70
push ebx
mov ecx, edi
call fcn.004782b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48c594
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a6d90]
jne 0x48c59e
repz ret
jmp fcn.00490e67

Function at 0x48eeb4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6d90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00489522
and dword [ebp - 0x14], 0
cmp dword [0x4a9ad4], 0
mov dword [ebp - 0x18], eax
jne 0x48ef67
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48f00f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48f00f
mov esi, dword [fcn.00485090]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a9ad4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a9ad8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a9adc], eax
call edi
push eax
call esi
mov dword [0x4a9ae4], eax
test eax, eax
je 0x48ef67
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a9ae0], eax
mov eax, dword [0x4a9ae0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00485094]
cmp eax, ecx
je 0x48efc0
cmp dword [0x4a9ae4], ecx
je 0x48efc0
push eax
call esi
push dword [0x4a9ae4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48efc0
test ebx, ebx
je 0x48efc0
call edi
test eax, eax
je 0x48efb7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48efb7
test byte [ebp - 8], 1
jne 0x48efc0
or dword [ebp + 0x10], 0x200000
jmp 0x48eff3
mov eax, dword [0x4a9ad8]
cmp eax, dword [ebp - 0x18]
je 0x48eff3
push eax
call esi
test eax, eax
je 0x48eff3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48eff3
mov eax, dword [0x4a9adc]
cmp eax, dword [ebp - 0x18]
je 0x48eff3
push eax
call esi
test eax, eax
je 0x48eff3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a9ad4]
call esi
test eax, eax
je 0x48f00f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48f011
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c594
leave
ret
Function at 0x10003720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.100ec680
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10003765
xor eax, eax
jmp 0x100037f7
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp esi, esp
call fcn.100ec680
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10003785
xor eax, eax
jmp 0x100037f7
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.100ec680
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jbe 0x100037da
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x100037da
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
jmp 0x100037b1
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x100037e6
xor eax, eax
jmp 0x100037f7
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x100037f4
xor eax, eax
jmp 0x100037f7
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.100ec680
mov esp, ebp
pop ebp
ret
Function at 0x10018770
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5c], 0
jne 0x100187a3
xor eax, eax
jmp 0x10018828
mov esi, esp
push 0
push 0
push 0
push 1
push str.WinInet_Example
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp esi, esp
call fcn.100ec680
mov dword [ebp - 0x14], eax
mov esi, esp
push 0
push 0x8000000
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x80
call fcn.100032c0
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x7c
call fcn.100032c0
push eax
mov eax, dword [ebp - 8]
mov cx, word [eax + 0x84]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.100032c0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp esi, esp
call fcn.100ec680
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x60], 0
jne 0x10018823
xor eax, eax
jmp 0x10018828
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.100ec680
mov esp, ebp
pop ebp
ret

Function at 0x10018aa0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x240]
mov ecx, 0x90
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x17c], 0
push 0
mov ecx, dword [ebp - 8]
call sub.MFC70D.DLL_Ordinal_3773
test eax, eax
je 0x10018ae6
mov ecx, dword [ebp - 8]
add ecx, 0x6c
call sub.MFC70D.DLL_Ordinal_2443
mov esi, esp
push 0x4001
push 0x160
lea eax, [ebp - 0x170]
push eax
push 0
push 0x10104b18
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp esi, esp
call fcn.100ec680
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x10018b30
push str.Cannot_retrieve_the_Handle_of_SystemImageList_
mov ecx, dword [ebp - 8]
add ecx, 0x68
call fcn.10003340
xor eax, eax
jmp 0x10018b70
mov eax, dword [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x6c
call sub.MFC70D.DLL_Ordinal_1651
test eax, eax
jne 0x10018b5a
push str.Cannot_Attach_SystemImageList_Handle
mov ecx, dword [ebp - 8]
add ecx, 0x68
call fcn.10003340
xor eax, eax
jmp 0x10018b70
push 0
mov eax, dword [ebp - 8]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 8]
call sub.MFC70D.DLL_Ordinal_7763
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x10018b95]
call fcn.100ec6b0
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x240
cmp ebp, esp
call fcn.100ec680
mov esp, ebp
pop ebp
ret
Function at 0x1001a1a0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fdac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x24c]
mov ecx, 0x90
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x20]
call fcn.10003140
mov dword [ebp - 4], 0
push str.c:windows
lea eax, [ebp - 0x20]
push eax
call fcn.10002610
add esp, 8
mov esi, esp
push 0x101
push 0x160
lea eax, [ebp - 0x188]
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.100032c0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp esi, esp
call fcn.100ec680
test eax, eax
jne 0x1001a248
push str.Error_Gettting_SystemFileInfo_
mov ecx, dword [ebp - 0x14]
add ecx, 0x68
call fcn.10003340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10003280
jmp 0x1001a2c5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x184]
mov dword [eax + 0x88], ecx
mov esi, esp
push 0x103
push 0x160
lea eax, [ebp - 0x188]
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.100032c0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp esi, esp
call fcn.100ec680
test eax, eax
jne 0x1001a2a7
push str.Error_Gettting_SystemFileInfo_
mov ecx, dword [ebp - 0x14]
add ecx, 0x68
call fcn.10003340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10003280
jmp 0x1001a2c5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x184]
mov dword [eax + 0x8c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.10003280
push edx
mov ecx, ebp
push eax
lea edx, [0x1001a2f4]
call fcn.100ec6b0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24c
cmp ebp, esp
call fcn.100ec680
mov esp, ebp
pop ebp
ret
Function at 0x10081049
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1015f214], 0
jne 0x1008108b
push str.ALLOW_CRASH
call sub.MSVCR70D.dll_getenv
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1008108b
mov eax, dword [ebp - 4]
push eax
call fcn.1008102d
add esp, 4
push str.Allowing_Crash:_get_auto_traceback_flag___n
call fcn.100bb012
add esp, 4
mov eax, dword [0x1015f214]
mov esp, ebp
pop ebp
ret
Function at 0x10084894
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.100c327d
cmp eax, 0x3ccf59
jne 0x100848b7
mov eax, dword [ebp + 8]
push eax
push str.pro_gethostbyname___s__:
call fcn.100bb012
add esp, 8
push 0x1015f2b0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x10084911
call fcn.100c327d
cmp eax, 0x3ccf59
jne 0x100848e5
push str.cache_HIT__matched_last__n
call fcn.100bb012
add esp, 4
push 0
call sub.MSVCR70D.dll_time
add esp, 4
mov edx, dword [0x10148430]
imul edx, edx, 0x58
mov dword [edx + 0x1015e814], eax
mov eax, dword [0x10148430]
imul eax, eax, 0x58
mov eax, dword [eax + 0x1015e7c0]
jmp 0x100849bf
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100849c3
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10084983
call fcn.10084f1b
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 4], eax
call fcn.100c327d
cmp eax, 0x3ccf59
jne 0x10084954
push str.cache_MISS_n
call fcn.100bb012
add esp, 4
cmp dword [ebp - 4], 0
je 0x10084981
mov ecx, dword [ebp - 4]
push ecx
call fcn.10084afb
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
imul eax, eax, 0x58
add eax, 0x1015e7c4
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
jmp 0x1008499c
call fcn.100c327d
cmp eax, 0x3ccf59
jne 0x1008499c
push str.cache_HIT_n
call fcn.100bb012
add esp, 4
cmp dword [ebp - 4], 0
je 0x100849bc
mov ecx, dword [ebp + 8]
push ecx
push 0x1015f2b0
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov edx, dword [ebp - 8]
mov dword [0x10148430], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10084f1b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x1015f2ac], 0
je 0x10084f34
mov eax, 1
jmp 0x10084f91
mov dword [0x1015f2ac], 1
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10084f8c
push str.Failed_to_startup_socket_communications_n
push 0x1015b4a0
call fcn.100bb0cb
add esp, 8
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.WSA_ERROR___d_n
push 0x1015b4a0
call fcn.100bb0cb
add esp, 0xc
push 1
call fcn.100c31de
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1008513b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov ax, word [0x1015f300]
test eax, eax
jne 0x100851e1
mov byte [ebp - 0x24], 0
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call fcn.1008521d
add esp, 8
movsx edx, byte [ebp - 0x24]
test edx, edx
jne 0x100851d0
push str.USER
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100851ad
push str.user
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100851ad
push str.USERNAME
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100851bf
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
jmp 0x100851d0
push str.nobody
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR70D.dll_strcpy
add esp, 8
lea eax, [ebp - 0x24]
push eax
push 0x1015f300
call fcn.10095a66
add esp, 8
mov eax, 0x1015f300
mov esp, ebp
pop ebp
ret

Function at 0x1008521d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x10085253
push 0x1015f34c
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10086135
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.IGNORE_XAR_EXT
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10086172
push 0x10148d2c
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x10086172
push 1
call fcn.1009408f
add esp, 4
jmp 0x1008617c
push 0
call fcn.1009408f
add esp, 4
push str.IGNORE_XAR_RELOC_CNT
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100861b3
push 0x10148d4c
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x100861b3
push 1
call fcn.100940d3
add esp, 4
jmp 0x100861bd
push 0
call fcn.100940d3
add esp, 4
push str.CLUMP_SIZE
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100861dc
mov dword [ebp - 8], 0x10000
jmp 0x100861eb
mov edx, dword [ebp - 4]
push edx
call sub.MSVCR70D.dll_atoi
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [0x10148c30], eax
push str.CLUMP_MODE_OFF
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1008622a
push 0x10148d70
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x1008622a
mov dword [0x1017b844], 1
jmp 0x10086234
mov dword [0x1017b844], 0
cmp dword [0x1017b844], 0
jne 0x1008624f
cmp dword [0x1017b854], 0
jne 0x1008624f
mov dword [ebp - 0xc], 0
jmp 0x10086256
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0xc]
mov dword [0x1017b848], edx
push str.AUTO_CLUMPS_ON
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10086296
push 0x10148d88
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x10086296
push 1
call fcn.1008780c
add esp, 4
jmp 0x100862a0
push 0
call fcn.1008780c
add esp, 4
push str.FORCE_MEM_REALLOCATION
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100862d7
push str.TRUE
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x100862d7
push 1
call fcn.1008b03d
add esp, 4
jmp 0x100862e1
push 0
call fcn.1008b03d
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10092e7b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x10092e94
cmp dword [ebp + 0x14], 0
jne 0x10092e94
xor eax, eax
jmp 0x10093050
cmp dword [ebp + 0xc], 0
jl 0x10092ea6
cmp dword [ebp + 0x10], 0
jle 0x10092ea6
cmp dword [ebp + 0x14], 0
jg 0x10092eb8
push 0x1014a7b0
push 0x1014a7c0
call fcn.10092e13
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x10092ed4
cmp dword [ebp + 0x14], 1
jne 0x10092ed4
cmp dword [ebp + 0x10], 0x80
jge 0x10092ed4
mov dword [ebp + 0x14], 2
call fcn.10092e32
test eax, eax
je 0x10092ee4
mov dword [ebp + 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [0x10148c64], 0xffffffff
jne 0x10092f0b
push str.DEBUG_XAR
call sub.MSVCR70D.dll_getenv
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [0x10148c64], eax
cmp dword [0x10148c64], 0
jne 0x10092f21
cmp dword [ebp - 4], 0
jne 0x10092f21
mov dword [ebp - 4], 1
mov eax, 0x1f3ff0
xor edx, edx
div dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
jle 0x10092f48
push 0x1014a7d8
push 0x1014a7e8
call fcn.10092e13
add esp, 8
mov edx, dword [ebp - 4]
imul edx, dword [ebp + 0x10]
add edx, 7
shr edx, 3
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shl eax, 3
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jge 0x10092f7d
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10089b76
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x10092f90
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1008c46b
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10092fa8
push 0x1014a7f4
push str.XAR_ALLOC
call fcn.10093054
add esp, 8
mov ecx, dword [ebp - 0x14]
and ecx, 0x7ffff
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0xfff80000
or eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
mov word [edx + 6], 0x4858
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
and ecx, 0x7ffff
mov edx, dword [ebp - 0x10]
mov word [edx + ecx*8 - 8], 0x5458
mov eax, dword [ebp - 0x10]
mov cx, word [ebp + 0x10]
mov word [eax + 4], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0x7ffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + eax*8 - 4], edx
cmp dword [ebp + 0x14], 0x1fff
jge 0x10093010
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x10093017
mov dword [ebp - 0x18], 0x1fff
mov ecx, dword [ebp - 0x18]
and ecx, 0x1fff
shl ecx, 0x13
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0x7ffff
or eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0x7ffff
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp + 8]
mov word [ecx + eax*8 - 6], dx
mov eax, dword [ebp - 0x10]
add eax, 8
mov esp, ebp
pop ebp
ret
Function at 0x1009b89b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x1017c1ec], 0
jne 0x1009b91a
mov dword [0x1017c1ec], 1
push str.CUSTOM_LOCALE_IS_MULTIBYTE
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1009b91a
mov eax, dword [ebp - 0x24]
push eax
call sub.MSVCR70D.dll_strlen
add esp, 4
cmp eax, 0x20
jae 0x1009b91a
mov ecx, dword [ebp - 0x24]
push ecx
call sub.MSVCR70D.dll_strlen
add esp, 4
test eax, eax
je 0x1009b91a
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.100db361
add esp, 8
push str.true
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCR70D.dll_strcmp
add esp, 8
test eax, eax
jne 0x1009b91a
mov dword [0x1017c1f0], 1
mov eax, dword [0x1017c1f0]
neg eax
sbb eax, eax
and al, 0xfb
add eax, 0xb
mov esp, ebp
pop ebp
ret

Function at 0x1009eaf7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.PRO_LANG
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [0x1017c208], eax
cmp dword [0x1017c208], 0
je 0x1009eb73
mov eax, dword [0x1017c208]
push eax
call fcn.1009b9e3
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xfffffffe
jne 0x1009eb4d
mov ecx, dword [0x1017c208]
push ecx
push str.WANRNING:_PRO_LANG_s_is_an_invalid_setting._n
call fcn.1009d36b
add esp, 8
mov dword [0x1017c208], 0
jmp 0x1009eb73
mov edx, dword [0x1017c208]
push edx
push str.LANG_s
push 0x1017c20c
call fcn.1009d2be
add esp, 0xc
push 0x1017c20c
call sub.MSVCR70D.dll__putenv
add esp, 4
cmp dword [0x1017c208], 0
jne 0x1009eb8e
push str.LANG
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [0x1017c208], eax
mov eax, dword [0x1017c208]
mov esp, ebp
pop ebp
ret