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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 1]
push edi
mov edi, dword [esi + 0x38]
mov ebx, dword [edi + 0x3c]
test ebx, ebx
je 0x484ada
push 1
push eax
push esi
mov ecx, ebx
call dword [0x613aec]
call ebx
add esp, 0xc
jmp 0x484aea
push dword [edi + 0x38]
push 1
push 1
push eax
call fcn.005e27cc
add esp, 0x10
cmp eax, 1
jne 0x484b43
mov cl, byte [ebp - 1]
test cl, cl
je 0x484b56
mov edx, dword [ebp + 0xc]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x38]
mov edi, dword [eax + 0x3c]
test edi, edi
je 0x484b23
movzx eax, byte [ebp - 1]
mov ecx, edi
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call dword [0x613aec]
call edi
add esp, 0xc
jmp 0x484b39
push dword [eax + 0x38]
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.005e27cc
add esp, 0x10
mov ecx, eax
movzx eax, byte [ebp - 1]
cmp ecx, eax
je 0x484b5f
pop edi
pop esi
mov dword [0x6a4fcc], 0x66
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
test byte [eax], 8
jne 0x484f1f
mov dword [0x6a4fcc], 0x6f
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x484f3d
push 1
lea eax, [ebp - 1]
push eax
push ecx
mov ecx, esi
call dword [0x613aec]
call esi
add esp, 0xc
jmp 0x484f50
push dword [eax + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.005e27cc
add esp, 0x10
pop esi
cmp eax, 1
je 0x484f66
mov dword [0x6a4fcc], 0x66
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
cmp al, 0x21
je 0x484faf
cmp al, 0x2c
je 0x484f9d
cmp al, 0x3b
mov eax, dword [ebp + 0xc]
je 0x484f8e
mov dword [eax], 0
xor eax, eax
mov dword [0x6a4fcc], 0x6b
mov esp, ebp
pop ebp
ret
mov dword [eax], 4
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x484fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x484ff3
mov dword [0x6a4fcc], 0x6f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x484fec
lea eax, [esi + 4]
push eax
push esi
call fcn.00485130
add esp, 8
test eax, eax
je 0x484fec
mov eax, dword [esi + 0x38]
push edi
mov edi, dword [eax + 0x3c]
test edi, edi
je 0x485033
push 3
lea eax, [ebp - 4]
mov ecx, edi
push eax
push esi
call dword [0x613aec]
call edi
add esp, 0xc
jmp 0x485046
push dword [eax + 0x38]
lea eax, [ebp - 4]
push 3
push 1
push eax
call fcn.005e27cc
add esp, 0x10
push ebx
cmp eax, 3
jne 0x485115
mov dl, byte [ebp - 4]
movzx ecx, dl
mov eax, ecx
shr eax, 4
and eax, 7
inc eax
mov dword [esi + 8], eax
movzx eax, byte [ebp - 3]
mov dword [esi + 0xc], eax
test dl, dl
jns 0x485109
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
push 0
push eax
call fcn.004857a0
add esp, 8
mov dword [esi + 0x10], eax
mov dword [ebp - 8], 0
cmp dword [eax], 0
jle 0x485109
xor ebx, ebx
mov eax, dword [esi + 0x38]
mov edi, dword [eax + 0x3c]
test edi, edi
je 0x4850b8
push 3
lea eax, [ebp - 4]
mov ecx, edi
push eax
push esi
call dword [0x613aec]
call edi
add esp, 0xc
jmp 0x4850cb
push dword [eax + 0x38]
lea eax, [ebp - 4]
push 3
push 1
push eax
call fcn.005e27cc
add esp, 0x10
cmp eax, 3
jne 0x485115
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
movzx eax, byte [ebp - 4]
mov byte [ebx + ecx], al
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 8]
movzx eax, byte [ebp - 3]
mov byte [ecx + ebx + 1], al
mov eax, dword [esi + 0x10]
mov cl, byte [ebp - 2]
mov edx, dword [eax + 8]
mov byte [edx + ebx + 2], cl
add ebx, 3
mov edx, dword [ebp - 8]
mov ecx, dword [esi + 0x10]
inc edx
mov dword [ebp - 8], edx
cmp edx, dword [ecx]
jl 0x485098
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov dword [0x6a4fcc], 0x66
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x485130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 0x38]
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x485158
push 2
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call dword [0x613aec]
call esi
add esp, 0xc
jmp 0x48516b
push dword [eax + 0x38]
lea eax, [ebp - 4]
push 2
push 1
push eax
call fcn.005e27cc
add esp, 0x10
pop esi
cmp eax, 2
je 0x485181
mov dword [0x6a4fcc], 0x66
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 4]
movzx ecx, ah
movzx eax, al
shl ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4851a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3c
call fcn.005e485b
mov esi, eax
add esp, 4
test esi, esi
jne 0x4851da
mov dword [0x6a4fcc], 0x6d
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
push edi
push 0x3c
push 0
push esi
call fcn.005d7470
push 0x6144
call fcn.005e485b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48521d
push esi
mov dword [0x6a4fcc], 0x6d
call fcn.005dafbf
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], edi
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 0x38], 0
mov dword [edi], 8
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x38]
push ebx
mov ebx, dword [eax + 0x3c]
test ebx, ebx
je 0x485261
push 6
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
push esi
call dword [0x613aec]
call ebx
add esp, 0xc
jmp 0x485274
push dword [eax + 0x38]
lea eax, [ebp - 0xc]
push 6
push 1
push eax
call fcn.005e27cc
add esp, 0x10
pop ebx
cmp eax, 6
je 0x485286
mov dword [0x6a4fcc], 0x66
jmp 0x4852ab
push 3
lea eax, [ebp - 0xc]
mov byte [ebp - 6], 0
push eax
push 0x63f938
call fcn.005e49a0
add esp, 0xc
test eax, eax
je 0x4852cc
mov dword [0x6a4fcc], 0x67
push edi
call fcn.005dafbf
push esi
call fcn.005dafbf
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
push esi
call fcn.00484fd0
add esp, 4
test eax, eax
je 0x4852ab
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
mov dword [0x6a4fcc], 0
pop esi
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret
Function at 0x4873a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4873ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4873d0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00403590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0049ed02
int3

Function at 0x4876e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4876f1
xor eax, eax
jmp 0x48770d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x487712
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00403590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0049ed02
int3

Function at 0x4877c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4877f3
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00403590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0049ed02
int3

Function at 0x4878d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4878fb
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x487901
cmp dword [ebp - 4], esi
jne 0x487918
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00403590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0049ed02
lea ecx, [edi + 0xc]
call fcn.00403590
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0049e942
int3

Function at 0x48d40f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x48d44e
call fcn.00488503
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x48d44e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48d456
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00495030
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x48df0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x48df9b
cmp dword [esi + 0x20], 0
je 0x48df9b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48df9b
cmp dword [ebp + 8], 0
je 0x48df9b
xor edi, edi
mov ebx, edi
call fcn.00488503
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x48df7f
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48df9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004a1b5d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x48df97
mov ecx, esi
call fcn.0048dc91
mov eax, edi
jmp 0x48df9d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x492ddb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x602e6d
call fcn.005d54dd
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x492e01
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x492e5b
lea ecx, [ebp - 0x10]
call fcn.00403500
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005eba7f
push eax
call fcn.00406600
add esp, 0x14
test esi, esi
je 0x492e4e
push esi
call fcn.005eb990
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402d90
mov eax, ebx
call fcn.005d54ab
ret 8

Function at 0x493660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x4936a8
call fcn.00488503
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4936a8
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4936b5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x4936f1
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x4936d4
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x4936dd
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x4936ef
test di, di
jne 0x4936ef
test dx, dx
je 0x4936f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x493764
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.00488503
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4937a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4937a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004937b0
jmp 0x4937a6
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x493ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x602ec2
call fcn.005d5546
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.00488503
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x493b0f
call fcn.00488503
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x493b23
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x493b1f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x493b2b
or eax, 0xffffffff
jmp 0x493c7d
mov ecx, edi
call fcn.00494124
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0048c031
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x493bb7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x493bb7
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x493bb7
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.00408ba0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x493bb4
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x613aec]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x493bb4
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00492f1b
test eax, eax
je 0x493bb4
push 0
mov ecx, esi
call fcn.0049283e
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0048bcda
push ebx
call fcn.0048d47c
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00493a4d
test eax, eax
jne 0x493c00
cmp dword [edi + 0x9c], eax
jne 0x493c00
call fcn.00488503
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0048d47c
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00493a4d
and dword [edi + 0x9c], 0
jmp 0x493c2b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x493c3f
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0049283e
test esi, esi
je 0x493c4c
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x493c62
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x493c62
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov ecx, edi
call fcn.004940db
mov eax, dword [edi + 0x68]
call fcn.005d54ab
ret
Function at 0x496bab
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.005d7470
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005eba7f
push eax
call fcn.00406600
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x63fe54]
je 0x496d09
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x496d1d
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x496d1d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x496c67
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x496c5b
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00496945
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x496c62
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x496c69
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00496e5b
test eax, eax
je 0x496c90
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004067e0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x496c94
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00496e5b
test eax, eax
je 0x496cbb
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004067e0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x496cbf
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00496e5b
test eax, eax
je 0x496ce7
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004067e0
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x496ce9
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x496cfb
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x496d09
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d4ba5
leave
ret 4
xor eax, eax
jmp 0x496d0c
Function at 0x4995c0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x499613
push esi
push dword [ebp + 8]
call fcn.004997ab
mov edi, eax
test edi, edi
je 0x49960e
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x49960e
mov eax, dword [ebp - 8]
jmp 0x499625
mov eax, dword [ebp + 0x10]
jmp 0x499625
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x499630
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x603200
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.005d5690
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x49975e
push ebx
push edx
call fcn.004997ab
mov ebx, eax
test ebx, ebx
jne 0x499698
push esi
jmp 0x499786
lea ecx, [ebp - 0x1014]
call fcn.00403500
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x49971d
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.00403640
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.00403540
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x49974b
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00403750
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402d90
jmp 0x49978d
push esi
mov ecx, edi
call fcn.00403450
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x499744
test esi, esi
jne 0x499767
mov esi, 0x674642
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.00403450
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d4ba5
leave
ret 0x10
Function at 0x49b360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x49b3a5
call fcn.00488503
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49b3a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49b3ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x49b3c8
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x613aec]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x49b3e9
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x49e4c1
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x49e538
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x49e4fe
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x49e4fe
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x49e52b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x49e52e
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x49e524
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x613aec]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x49e4e1
test eax, eax
je 0x49e57f
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.0049e7b5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8