joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100128c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x410
mov eax, dword [0x10043290]
xor eax, esp
mov dword [esp + 0x40c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0x22
jne 0x100128f2
add eax, 1
push eax
push 0x104
lea eax, [esp + 0x110]
push eax
jmp 0x10012900
push eax
push 0x104
lea ecx, [esp + 0x110]
push ecx
call fcn.1001bf66
add esp, 0xc
push 0x100
lea edx, [esp + 0xc]
push edx
push 0x100
lea eax, [esp + 0x218]
push eax
push 0x100
lea ecx, [esp + 0x320]
push ecx
push 3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.1001d43d
lea eax, [esp + 0x2c]
add esp, 0x24
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10012950
sub eax, edx
je 0x1001298f
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10012964
sub eax, edx
cmp byte [esp + eax + 7], 0x22
jne 0x1001298f
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10012980
sub eax, edx
mov byte [esp + eax + 7], cl
push 0x1003b2bb
push 0x1003b2bb
lea ecx, [esp + 0x314]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x104
push 0x10044740
call fcn.1001d336
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x228]
push ecx
push 0x1003b2bb
push 0x1003b2bb
push 0x104
push 0x10044638
call fcn.1001d336
mov ecx, dword [esp + 0x43c]
add esp, 0x30
xor ecx, esp
call fcn.1001bfcb
add esp, 0x410
ret

Function at 0x100149a9
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x210]
mov dword [esp + 0x24], eax
call fcn.10013fd0
mov edi, dword [esp + 0x10]
test edi, edi
mov ebp, dword [esi + 0x218]
lea eax, [esi + 0x214]
je 0x100149de
cmp edi, eax
je 0x100149e3
call fcn.1001c77f
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
jne 0x10014a5d
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esi + 0x268]
test eax, eax
je 0x10014a38
push str.false
push 0x1003b888
push 1
call eax
add esp, 0xc
test eax, eax
jne 0x10014a51
mov ecx, dword [esi + 0x26c]
push eax
push 0x10044848
push 0x1003b888
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esi + 0x26c]
push 0
push 0x10044848
push 0x1003b888
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
test edi, edi
jne 0x10014a66
call fcn.1001c77f
cmp ebx, dword [edi + 4]
jne 0x10014a70
call fcn.1001c77f
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x10]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [edi]
mov ecx, dword [esi + 0x20c]
add dword [ecx + 0x118], edx
pop edi
pop esi
adc dword [ecx + 0x11c], 0
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x10014ab9
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x210]
mov dword [esp + 0x24], eax
call fcn.10013fd0
mov edi, dword [esp + 0x10]
test edi, edi
mov ebp, dword [esi + 0x218]
lea eax, [esi + 0x214]
je 0x10014aee
cmp edi, eax
je 0x10014af3
call fcn.1001c77f
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
jne 0x10014b6d
mov eax, dword [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esi + 0x268]
test eax, eax
je 0x10014b48
push str.false
push 0x1003b888
push 1
call eax
add esp, 0xc
test eax, eax
jne 0x10014b61
mov ecx, dword [esi + 0x26c]
push eax
push 0x10044848
push 0x1003b888
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esi + 0x26c]
push 0
push 0x10044848
push 0x1003b888
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
test edi, edi
jne 0x10014b76
call fcn.1001c77f
cmp ebx, dword [edi + 4]
jne 0x10014b80
call fcn.1001c77f
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x10]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [edi]
mov ecx, dword [esi + 0x20c]
add dword [ecx + 0x118], edx
pop edi
pop esi
adc dword [ecx + 0x11c], 0
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x10014cd9
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x210]
mov dword [esp + 0x24], eax
call fcn.10013fd0
mov edi, dword [esp + 0x10]
test edi, edi
mov ebx, dword [esi + 0x218]
lea eax, [esi + 0x214]
je 0x10014d0e
cmp edi, eax
je 0x10014d13
call fcn.1001c77f
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
jne 0x10014d83
mov eax, dword [esi + 0x268]
test eax, eax
je 0x10014d5e
push str.false
push 0x1003b888
push 1
call eax
add esp, 0xc
test eax, eax
jne 0x10014d77
push eax
mov eax, dword [esi + 0x26c]
push 0x10044848
push 0x1003b888
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ecx, dword [esi + 0x26c]
push 0
push 0x10044848
push 0x1003b888
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
test edi, edi
jne 0x10014d8c
call fcn.1001c77f
cmp ebp, dword [edi + 4]
jne 0x10014d96
call fcn.1001c77f
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x10018720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, dword [esp + 0x6c]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push esi
mov edi, ecx
mov ecx, dword [edi + 8]
push 0x100e
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], ebx
call ebp
mov eax, dword [esp + 0x78]
cmp eax, 1
jne 0x1001878d
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
jmp 0x100187ae
cmp eax, 2
jne 0x100187bb
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, edi
call fcn.10018390
test eax, eax
je 0x100187bb
mov dword [esp + 0x38], 2
lea edx, [esp + 0x38]
mov eax, dword [edi + 8]
push edx
push esi
push 0x100e
push eax
call ebp
xor esi, esi
cmp dword [esp + 0x74], ebx
mov dword [esp + 0x48], 2
jl 0x10018816
jmp 0x100187d0
cmp esi, ebx
jne 0x100187da
mov dword [esp + 0x10], ebx
jmp 0x100187f6
mov eax, dword [edi + 8]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esi - 1]
push edx
push 0x1019
push eax
call ebp
mov ecx, dword [esp + 0x50]
add dword [esp + 0x10], ecx
mov eax, dword [edi + 8]
lea edx, [esp + 0x48]
push edx
push esi
push 0x1019
push eax
call ebp
mov edx, dword [esp + 0x50]
add esi, 1
cmp esi, dword [esp + 0x74]
jle 0x100187d0
jmp 0x10018818
mov edx, ebx
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x24]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x28]
add edi, esi
mov esi, dword [esp + 0x10]
add edi, esi
add edi, ecx
mov dword [eax], edi
mov edi, dword [esp + 0x78]
cmp edi, 1
jne 0x10018867
mov edx, dword [esp + 0x30]
pop edi
add edx, esi
pop esi
add edx, ecx
pop ebp
mov dword [eax + 8], edx
pop ebx
add esp, 0x58
ret 0x10
add esi, edx
add esi, ecx
pop edi
mov dword [eax + 8], esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
Function at 0x1001bfcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10043290]
jne 0x1001bfd5
repz ret
jmp fcn.1001e38e

Function at 0x1002c0cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001e979
xor ebx, ebx
cmp dword [0x10045444], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1002c1a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1002c10b
xor eax, eax
jmp 0x1002c264
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003d31c
push edi
call esi
cmp eax, ebx
je 0x1002c104
push eax
call fcn.1001e916
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10045444], eax
call esi
push eax
call fcn.1001e916
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10045448], eax
call esi
push eax
call fcn.1001e916
mov dword [0x1004544c], eax
lea eax, [ebp - 8]
push eax
call fcn.1001f1ae
test eax, eax
pop ecx
pop ecx
je 0x1002c16e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001c627
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1002c1a0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001e916
cmp eax, ebx
pop ecx
mov dword [0x10045454], eax
je 0x1002c1a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001e916
pop ecx
mov dword [0x10045450], eax
mov eax, dword [0x10045450]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1002c219
cmp dword [0x10045454], esi
je 0x1002c219
push eax
call fcn.1001e982
pop ecx
call eax
cmp eax, ebx
je 0x1002c1e6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10045454]
call fcn.1001e982
pop ecx
call eax
test eax, eax
je 0x1002c1e6
test byte [ebp - 0x18], 1
jne 0x1002c219
lea eax, [ebp - 0xc]
push eax
call fcn.1001f25d
test eax, eax
pop ecx
je 0x1002c201
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001c627
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1002c210
or dword [ebp + 0x10], 0x200000
jmp 0x1002c24a
or dword [ebp + 0x10], 0x40000
jmp 0x1002c24a
mov eax, dword [0x10045448]
cmp eax, esi
je 0x1002c24a
push eax
call fcn.1001e982
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002c24a
mov eax, dword [0x1004544c]
cmp eax, esi
je 0x1002c24a
push dword [ebp - 4]
push eax
call fcn.1001e982
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10045444]
call fcn.1001e982
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002ee54
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1002ee8f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1002ee76
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1002ee87
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1002ee91
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1002ee6c
xor eax, eax
pop edi
pop esi
ret
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
mov eax, dword [0x4182f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x4182fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0xae00c4], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0xb18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x418300]
mov edx, dword [0x418304]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xae00c4], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xae00c0]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xae00c4], 0x3eb
mov dword [0xae00c0], eax
mov eax, dword [0xae0018]
cmove eax, dword [ebp - 8]
mov dword [0xae0018], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0xae00bc], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0xae00c4], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40136d
push edx
push edx
push edx
lea eax, [ebp - 0x318]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x718]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0xae00c4], 0xb03
mov dword [ebp - 4], ecx
jne 0x4013b0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b52a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407220
mov dword [ebp - 0x14], eax
cmp dword [0x43b8ac], esi
jne 0x40b61d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b5aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b6fd
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40b6fd
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6fd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43b8ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43b8b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43b8b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b8bc], eax
test eax, eax
je 0x40b61a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b8b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b642
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b635
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40b657
push 4
pop eax
jmp 0x40b6ff
cmp dword [ebp - 0x14], esi
je 0x40b657
push dword [0x43b8ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b63c
mov eax, dword [0x43b8b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40b6b5
cmp dword [0x43b8bc], edi
je 0x40b6b5
push eax
call ebx
push dword [0x43b8bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b6b5
test eax, eax
je 0x40b6b5
call ecx
test eax, eax
je 0x40b6aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40b6aa
test byte [ebp - 8], 1
jne 0x40b6b5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40b6e5
mov eax, dword [0x43b8b0]
cmp eax, edi
je 0x40b6e2
push eax
call ebx
test eax, eax
je 0x40b6e2
call eax
mov esi, eax
test esi, esi
je 0x40b6e2
mov eax, dword [0x43b8b4]
cmp eax, edi
je 0x40b6e2
push eax
call ebx
test eax, eax
je 0x40b6e2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43b8ac]
call ebx
test eax, eax
je 0x40b6fd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40b6ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403a7c
mov esp, ebp
pop ebp
ret
Function at 0x40f600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00426460
xor eax, eax
nop
mov cl, byte [eax + 0x4a2238]
mov dl, byte [eax + 0x4a2230]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x40f610
lea eax, [ebp - 8]
push str.xiaocao
push eax
call fcn.004136b0
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00412420
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.00414d64
add esp, 0x10
cmp eax, 0x18
jl 0x40f6d1
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x40f6a0
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x40f6be
cmp ecx, 0x14
je 0x429f20
inc edx
cmp edx, esi
jl 0x40f680
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.00415131
add esp, 0xc
jmp 0x40f654
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x40f6df
inc ecx
jmp 0x40f692
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x40f6f4
add ecx, 2
jmp 0x40f692
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x429f18
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x429f07
add ecx, 4
jmp 0x40f692
add ecx, 5
cmp ecx, 0x14
jl 0x40f682
jmp 0x40f692
add ecx, 3
jmp 0x40f692
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.00415131
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.00414d64
lea edx, [ebp - 8]
push str.wglm
push edx
mov byte [ebp - 4], 0
call fcn.00414d90
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x40f6d6
Function at 0x435fe3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x436032
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00414316
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x4360e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x43610a
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00412420
add esp, 0xc
jmp 0x43611e
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00414d64
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push str.wglm
push ecx
mov byte [ebp - 4], 0
call fcn.00414d90
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4361c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4b75a8], eax
mov edx, 1
mov eax, 0x4b75a8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4b7f64
jl 0x4361d6
mov dword [0x4a20f4], 1
mov dword [0x4b7f78], 1
pop edi
pop ebp
ret

Function at 0x4370c5
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x437161
jne 0x4370e8
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x43715a
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x43715a
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x49c860]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x437107
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret