joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000167c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001768
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.10012644
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000173e
call fcn.100037d1
jmp 0x1000173e
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.10012644
int3

Function at 0x1000177d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001869
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.10012644
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000183f
call fcn.100037d1
jmp 0x1000183f
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.10012644
int3
Function at 0x100019e1
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001d960
call fcn.10004980
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.100018f8
test eax, eax
je 0x10001a12
call fcn.100018ea
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x10021c18
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10001b28
jmp 0x10001a62
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10001a70
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001ad1
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001b2e
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10001b20
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x10001b20
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001b2e
mov eax, esi
call fcn.10004937
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003d44
pop ecx
pop ecx
push edi
push esi
call fcn.10012644
int3

Function at 0x10002445
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x10002469
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
ret
Function at 0x100030b4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1001d9bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1001ec0c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10012644
add esp, 0xc
test eax, eax
jne 0x100031a9
push dword [ebp - 0x18]
call fcn.10012644
cmp dword [0x1002aa80], 0
pop ecx
je 0x10003122
xor eax, eax
inc eax
jmp 0x100031ab
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x100031a9
test eax, eax
je 0x100031a9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000330b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.1000330b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100033d2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10003177
call fcn.100037d1
push 0x1001ec38
lea ecx, [ebp - 0x10]
call fcn.100033b4
push eax
push 0x1002aa80
call fcn.10012644
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x100031a4
call fcn.100037d1
lea eax, [esi + 1]
jmp 0x100031ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10004926
add ebp, 0x108
leave
ret

Function at 0x10003656
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.10012644
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100036e0
lea eax, [esp + 0x28]
push eax
call fcn.10003656
mov esi, eax
test esi, esi
jne 0x10003705
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x100036bb
call fcn.1000342b
push ebx
mov ecx, edi
call fcn.10003445
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000342b
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x11c
ret 4
Function at 0x10003bc2
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1002a034]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10005d80
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.10012644
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.10012644
push 0x10021be8
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.10012644
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10005d80
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c67
sub ecx, edx
cmp ecx, 6
jbe 0x10003c8e
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.10012644
pop ecx
pop ecx
test eax, eax
jne 0x10003c8e
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10003c95
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10020533
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.10012644
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10005800
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003d0f
mov ax, word [0x10021c14]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004926
add esp, 0x824
ret
Function at 0x10012644
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10012653
pop dword [ebp - 0x40]
mov eax, 0x10012653
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe43741f4
add dword [ebp - 0x50], 0x6a1b0357
mov dword [ebp - 0x4c], 0x5eb33be7
add dword [ebp - 0x4c], 0xd380105e
mov dword [ebp - 0x48], 0xadbb3da
add dword [ebp - 0x48], 0x41709054
mov dword [ebp - 0x44], 0xb5255f45
add dword [ebp - 0x44], 0x4adaa0bb
lea eax, [ebp - 0x50]
push eax
mov eax, 0xf6e597da
add eax, 0x191c48a6
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa136bb7f
sub dword [ebp - 0x50], 0x2cc45229
mov dword [ebp - 0x4c], 0x3aca9ee6
sub dword [ebp - 0x4c], 0xf95e3d71
mov dword [ebp - 0x48], 0xd412abd7
sub dword [ebp - 0x48], 0x70a33f6b
mov dword [ebp - 0x44], 0x9e2deff1
add dword [ebp - 0x44], 0x61d2100f
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xf137cbf5
sub eax, 0xe135eb71
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3f3c6
push 0
call eax
mov ecx, 0x4db0
xor edi, edi
add edi, eax
mov esi, 0x14d7337f
add esi, 0xfb2c2481
add esi, dword [ebp - 0x40]
mov ebx, 0x4a56ccf
sub dword [ebp - 0x1c], 0xf91f74a7
mov edx, dword [esi]
sub dword [ebp - 0x34], esi
add edx, ebx
mov dword [edi], edx
xor dword [ebp - 0x3c], 0x1c02592a
add edi, 0xe98e1cb
add edi, 0xf1671e39
add esi, 0x2ac0c939
add esi, 0xd53f36cb
loop 0x10012766
add eax, 0x28cfab7a
add eax, 0xd7317e19
mov ebx, eax
add eax, 0x33235a37
add eax, 0xccdca5ce
mov ecx, 0x49924d8
sub ecx, 0xf49924d8
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401e10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492570
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x4ae680]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0045d928
call fcn.00403de0
push str.CmdsRecord_
call fcn.0044c190
add eax, 0x264
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004070a0
add esp, 0xc
lea edi, [esi + 0x708]
push eax
mov ecx, edi
mov dword [esp + 0x4c], 0
call fcn.004077a0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.0045ded3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401ec8
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], 1
call fcn.0044c190
push 1
lea ecx, [esp + 0x18]
call fcn.0044d7c0
lea ecx, [esp + 0x24]
call fcn.0045e8c9
mov byte [esp + 0x48], 2
mov edi, dword [esp + 0x14]
push 0
push edi
lea ecx, [esp + 0x2c]
call fcn.0045e95e
test eax, eax
jne 0x401fa8
push str.CmdsRecord_
call fcn.0044c190
add eax, 0x264
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004070a0
add esp, 0xc
push str.FirstConfig.cfg
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x54], 3
call fcn.004070a0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 4
call fcn.004077a0
mov byte [esp + 0x48], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push 0x49b083
push edi
call fcn.00476a04
add esp, 8
test eax, eax
setne al
test al, al
je 0x401fec
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov ebp, esp
push eax
call fcn.00407730
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov byte [esp + 0x4c], 5
call fcn.0044c190
mov byte [esp + 0x4c], 2
call fcn.004537e0
push edi
lea ecx, [esi + 0x6b4]
call fcn.0045b82f
mov ecx, esi
call fcn.00404340
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call fcn.0045e8ef
lea eax, [edi - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402031
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x40bd00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40bd19
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40bd54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40bd50
lea ebx, [ebx]
cmp esi, eax
jae 0x40bd54
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40bd40
cmp esi, eax
jb 0x40bd5a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40eee0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x491700
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4ae680]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esp + 0x28], 0
push str.CmdsRecord_
jne 0x40efc6
call fcn.0044c190
add eax, 0x260
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004070a0
push str.default
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x38], 0
call fcn.004070a0
add esp, 0x18
mov ecx, 1
mov byte [esp + 0x20], cl
mov edi, dword [eax]
mov eax, dword [esi]
sub ecx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40ef72
push 0x104
mov ecx, esi
call fcn.004075c0
mov esi, dword [esi]
push edi
push 0x104
push esi
push 0x49b083
push str.Path
push str.DefaultPath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40efb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0xc]
jmp 0x40f071
call fcn.0044c190
add eax, 0x264
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004070a0
push str.default
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x38], 2
call fcn.004070a0
add esp, 0x18
mov byte [esp + 0x20], 3
mov edi, dword [eax]
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40f022
push 0x104
mov ecx, esi
call fcn.004075c0
mov esi, dword [esi]
push edi
push 0x104
push esi
push 0x49b083
push str.Path1
push str.CleanPath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x20], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f08d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x40f0b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4916b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4ae680]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ebx
mov dword [esp + 0x24], 0
call fcn.0040bb80
call fcn.0045ded3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f0ff
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push 0x49b083
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.0040bf30
mov byte [esp + 0x24], 2
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push str.TotalNums
push str.AllCommandName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40f1fe
lea esp, [esp]
push edi
lea edx, [esp + 0x18]
push str.KeyName_d
push edx
call fcn.00407320
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x38]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x40f191
push 0x104
lea ecx, [esp + 0x14]
call fcn.004075c0
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push esi
push 0x104
push edx
push 0x49b083
push ebp
push str.AllCommandName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x10]
push 0x49b083
push eax
call fcn.00476a04
add esp, 8
test eax, eax
setne al
test al, al
je 0x40f1f3
mov ecx, dword [ebx + 8]
push ecx
mov eax, ebx
call fcn.0040c010
mov esi, eax
lea edx, [esp + 0x10]
lea ecx, [esi + 8]
push edx
call fcn.004077a0
mov eax, dword [ebx + 8]
test eax, eax
je 0x40f1ed
mov dword [eax], esi
jmp 0x40f1f0
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
inc edi
cmp edi, dword [esp + 0x18]
jl 0x40f150
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f26c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x40f4b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4916b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4ae680]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ebx
mov dword [esp + 0x24], 0
call fcn.0040bb80
call fcn.0045ded3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f4ff
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
push 0x49b083
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.0040bf30
mov byte [esp + 0x24], 2
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push str.TotalNums
push str.CommandName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40f5fe
lea esp, [esp]
push edi
lea edx, [esp + 0x18]
push str.KeyName_d
push edx
call fcn.00407320
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov esi, dword [esp + 0x38]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x40f591
push 0x104
lea ecx, [esp + 0x14]
call fcn.004075c0
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push esi
push 0x104
push edx
push 0x49b083
push ebp
push str.CommandName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x10]
push 0x49b083
push eax
call fcn.00476a04
add esp, 8
test eax, eax
setne al
test al, al
je 0x40f5f3
mov ecx, dword [ebx + 8]
push ecx
mov eax, ebx
call fcn.0040c010
mov esi, eax
lea edx, [esp + 0x10]
lea ecx, [esi + 8]
push edx
call fcn.004077a0
mov eax, dword [ebx + 8]
test eax, eax
je 0x40f5ed
mov dword [eax], esi
jmp 0x40f5f0
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
inc edi
cmp edi, dword [esp + 0x18]
jl 0x40f550
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f623
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f66c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4

Function at 0x40f8b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push str.DPIType
push str.DPITYPE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f8ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 8
Function at 0x40f9e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push str.FlashSel
push str.FlashSel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fa1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 8

Function at 0x40fc00
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push str.JetType
push str.JETTYPE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 8]
mov byte [ecx], al
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fc3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 8