joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a2f98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5fd8f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5a2fde
cmp word [ebx], dx
jne 0x5a2fde
or byte [eax + edi + 0x28], 4
jmp 0x5a2fe3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5a3146
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5a3126
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5a3024
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5a305a
cmp eax, edx
jae 0x5a3068
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5a2fff
jmp 0x5a3146
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a3121
cmp dword [ebp - 0x18], 0
je 0x5a3121
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5fd8f8]
test byte [eax + edi + 0x28], 0x48
je 0x5a30f7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5a30bb
mov word [esi], cx
jmp 0x5a30f2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5fd8f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5fd8f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5fd8f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5a3146
pop eax
cmp word [ebp - 4], ax
jne 0x5a3107
cmp esi, ebx
jne 0x5a3107
mov word [esi], ax
jmp 0x5a3143
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005a2c9d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5a3146
push 0xd
pop eax
jmp 0x5a3102
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5fd8f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5a3140
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5a3146
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5a7c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a7c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a7c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4031b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401f8f
and dword [ebp - 4], 0
cmp dword [0x40b660], 0
mov ebx, eax
jne 0x403264
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403315
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403315
push eax
call fcn.00401f1d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b660], eax
call esi
push eax
call fcn.00401f1d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b664], eax
call esi
push eax
call fcn.00401f1d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.00401f1d
pop ecx
mov dword [0x40b670], eax
test eax, eax
je 0x403264
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401f1d
pop ecx
mov dword [0x40b66c], eax
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x4032bc
cmp dword [0x40b670], ebx
je 0x4032bc
push eax
call fcn.00401f98
push dword [0x40b670]
mov esi, eax
call fcn.00401f98
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4032bc
test edi, edi
je 0x4032bc
call esi
test eax, eax
je 0x4032b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4032b3
test byte [ebp - 0xc], 1
jne 0x4032bc
or dword [ebp + 0x10], 0x200000
jmp 0x4032f5
mov eax, dword [0x40b664]
cmp eax, ebx
je 0x4032f5
push eax
call fcn.00401f98
pop ecx
test eax, eax
je 0x4032f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4032f5
mov eax, dword [0x40b668]
cmp eax, ebx
je 0x4032f5
push eax
call fcn.00401f98
pop ecx
test eax, eax
je 0x4032f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b660]
call fcn.00401f98
pop ecx
test eax, eax
je 0x403315
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403317
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404584
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x404530
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40454e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4045ac
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
add byte [eax], al
invalid
invalid
add byte [eax], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404593
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40459c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4045a6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x404588
inc dword [ebp + 0xc]
invalid
test dword [eax - 1], edi
invalid
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0xe2b33c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe2b346
pushal
call 0xe2b34c
pop ebp
sub ebp, 0x10
sub ebp, 0xa2b33c
jmp 0xe2b362
add al, 0
add byte [eax], al
dec edx
xchg dword [eax - 0x62], edx
mov eax, 0xa2b33c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0x8fa07258
xor byte [eax], dl
inc eax
dec ecx
jne 0xe2b379
test esi, esi
invalid
jmp 0xe2b38c
rcl dword [ebp + 0x5864d1d3], cl
pop eax
pop eax
fstp dword [ecx + 0x585858a0]
pop ebx
xchg ebp, eax
loopne 0xe2b3fc
pop eax
pop eax
pop eax
loop 0xe2b413
pop eax
pop eax
pop eax
scasd eax, dword es:[edi]
mov edx, 0xd9d3905b
push esp
pop eax
pop eax
pop eax
pop ebx
popfd
aad 0x3c
jl 0xe2b35a
rcr dword [esp + edi*2 + 8], 1
xor byte [eax + ecx*8 + 0x3d305879], cl
jp 0xe2b39c
cmp eax, 0x5958d97a
pop eax
pop ecx
je 0xe2b443
xor byte [eax], dl
int1
invalid
mov cl, 0x76
pop eax
pop eax
pop eax
aad 0x3c
jl 0xe2b37e
sal dword [esp + edi*2 + 0xc], 1
add eax, 0x5850ddd3
pop eax
pop eax
ror ebp, cl
push esp
pop eax
pop eax
pop eax
rcl ebp, cl
dec eax
pop eax
pop eax
pop eax
cdq
mov cl, 0x5a
imul ebx, dword [edx - 0x25], 0x57115c9a
invalid
lodsb al, byte [esi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
add eax, 0xd358549a
aam 0x7c
pop esp
pop eax
pop eax
pop eax
xor byte [eax + ecx*8 + 0x3d305879], cl
jp 0xe2b3ed
fstp dword [eax + 0x59]
pop eax
pop ecx
je 0xe2b494
aad 0x3c
jl 0xe2b3c0
rcl dword [esp + edi*2 - 0x50]
pop ebp
pop eax
pop eax
pop eax
mov cl, 0x15
pop edx
pop eax
pop eax
aad 0x3c
jl 0xe2b3d1
sal dword [esp + edi*2 - 0x2b], 1
xor al, 0x7c
pop eax
cmpsd dword [esi], dword es:[edi]
sub eax, 0x502da754
mov al, 0x20
pop eax
pop eax
pop eax
shl ebp, cl
push eax
pop eax
pop eax
pop eax
fldcw word [ecx + 0x7f8c6ee6]
fldcw word [ecx + 0x7f8c6ee6]
imul edx, dword [ecx - 0x4f247595], 0x5d
adc byte [edi - 0x24], dl
push ss
pop eax
pop eax
pop eax
push edi
rcl byte [eax]
pop eax
pop eax
pop eax
rol dword ds:[ecx - 0x28], cl
mov dword [0x42dc57b0], eax
pop eax
pop eax
pop eax
fsub dword [ebx + 0x49dc57b1]
pop eax
pop eax
pop eax
fldenv ds:[ebx - 0x23a88259]
dec ebp
pop eax
pop eax
pop eax
sbb dword [ecx - 0x5858586c], esi
jno 0xe2b4a2
popal
pop ecx
fistp dword [ecx + 0x5cb0db5d]
mov al, 0x5c
mov cl, 0xe5
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
jno 0xe2b4a9
popal
pop edx
fistp dword [ecx + 0x5cb2db5e]
invalid
invalid
repe cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
sal dword [esp + edi*2 - 0x2b], cl
cmp al, 0x7c
pop esp
lcall 0xeb4, 0xd30d5854
invalid
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x4c5e2465
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x26231866
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 4
push 0x40
push 0x3000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esp, ebp
pop ebp
ret

Function at 0x448a86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x448a86
lcall 0x5de5, 0x8b10c483
jmp loc.00969878
Function at 0x401b30
Capabilities:
Encode data using xor
Hash data using murmur2
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
xor ecx, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x2c], eax
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x401d1a
nop dword [eax]
mov edx, dword [edx]
xorps xmm0, xmm0
add edx, esi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ba1
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.00401000
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov ebx, dword [esp + 0x30]
mov esi, edi
xor esi, 0x235
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x44], 0x10
mov ebp, edi
cmovae eax, ebx
shr ebp, 2
xor edx, edx
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x401c19
mov ebx, eax
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e995
inc edx
imul esi, esi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
cmp edx, ebp
jl 0x401bf0
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
and edi, 3
xor ecx, ecx
sub edi, 1
je 0x401c3f
sub edi, 1
je 0x401c35
sub edi, 1
jne 0x401c51
movsx ecx, byte [eax + ebp*4 + 2]
shl ecx, 0x10
movsx eax, byte [eax + ebp*4 + 1]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x10]
movsx eax, byte [eax + ebp*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x54]
je 0x401cc7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add edx, 4
mov dword [esp + 0x14], edx
cmp eax, 0x10
jb 0x401cae
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x401ca0
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d33
push ecx
push ebx
call fcn.004048db
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x28]
jb 0x401b80
jmp 0x401d1a
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x401d1a
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x401d10
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d33
push ecx
push ebx
call fcn.004048db
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004048f7
add esp, 0x3c
ret
call fcn.00407a4f
int3
Function at 0x40515e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40519d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40519d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40519d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40519d
cmp dword [ecx + 0x74], 0xe
jbe 0x40519d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40b654
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418b70
push 0x418b68
push str.FlsAlloc
push 0x1e
call fcn.0040b515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b688
push dword [ebp + 8]
mov ecx, esi
call dword [0x417110]
call esi
jmp 0x40b68e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b6d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418b80
push 0x418b78
push str.FlsGetValue
push 0x20
call fcn.0040b515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b709
push dword [ebp + 8]
mov ecx, esi
call dword [0x417110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40e685
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40e722
push ebx
push esi
call fcn.0040e64e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040e597
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e6cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e721
push edi
push eax
call fcn.0040be07
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e6ef
call fcn.0040b3a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e720
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e597
add esp, 0x20
test eax, eax
jne 0x40e70e
push edi
call fcn.0040b3a8
jmp 0x40e716
push ebx
call fcn.0040b3a8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x416560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41658d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41658d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000a8d4
Capabilities:
Read .ini file

Disassembly:
push 0x1c
mov eax, 0x10082a07
call fcn.1003b6ff
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x1000aad1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x1000aad1
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.10037360
pop ecx
pop ecx
mov edi, 0x10088568
lea ecx, [ebp - 0x10]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.100093be
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call fcn.1000a09e
mov ecx, eax
call fcn.10017fdf
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 2
call fcn.10009725
push eax
lea ecx, [ebp - 0x1c]
call fcn.10009ccc
test eax, eax
jne 0x1000a956
push 0x13
push edi
lea ecx, [ebp - 0x10]
call fcn.1000a52f
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
call fcn.1000a0bd
push eax
lea ecx, [ebp + 8]
call fcn.10009334
mov edi, dword [ebp - 0x18]
lea ecx, [ebp + 8]
push 0x800
mov byte [ebp - 4], 4
call fcn.1000a30f
push 0x800
lea ecx, [ebp + 8]
mov esi, eax
call fcn.1000a504
push edi
push 0x800
push esi
push 0x100884a4
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov esi, eax
call fcn.1000a470
cmp esi, 0x7ff
je 0x1000a9c7
cmp esi, 0x7fe
jne 0x1000a9fd
mov edi, dword [ebp - 0x18]
lea ecx, [ebp + 8]
push 0x1000
call fcn.1000a30f
push 0x1000
lea ecx, [ebp + 8]
mov esi, eax
call fcn.1000a504
push edi
push 0x1000
push esi
push 0x100884a4
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1000a5a3
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
push edi
push esi
push dword [ebp - 0x28]
call fcn.10008f28
add esp, 0x14
cmp eax, esi
jne 0x1000aa9d
push edi
lea ecx, [ebp - 0x28]
call fcn.10009309
mov edi, dword [ebp - 0x24]
xor esi, esi
sub edi, dword [ebp - 0x28]
sar edi, 2
lea eax, [edi - 0xc8]
test eax, eax
cmovg esi, eax
call fcn.1000a0bd
push eax
lea ecx, [ebp - 0x14]
call fcn.10009334
mov byte [ebp - 4], 5
jmp 0x1000aa7f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1000aa6c
push 1
push 0x10088564
lea ecx, [ebp - 0x14]
call fcn.10009920
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.10009920
inc esi
cmp esi, edi
jl 0x1000aa54
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esi - 0x10]
call fcn.1000a458
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1000a458
lea ecx, [ebp - 0x28]
call fcn.1000acb2
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1000a458
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000a458
call fcn.1003b6c8
ret
Function at 0x1000b19f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100a7274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1005a770
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.100093be
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003b26e
leave
ret