joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5303f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x53041b
xor eax, eax
jmp 0x530589
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5c5440]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x53044e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.005386ba
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x530520
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x53055b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x5304a9
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x53049a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x53047d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5304e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x5304f2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x53046e
jmp 0x5304f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x530584
cmp dword [ebp - 8], edi
je 0x53055b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x53054d
call fcn.0052b77d
mov dword [eax], 9
call fcn.0052b786
mov dword [eax], esi
jmp 0x530556
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x530542
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x5304f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x5304f4
push dword [ebp - 8]
call fcn.0052b78f
pop ecx
or eax, 0xffffffff
jmp 0x530587
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x530570
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x530570
xor eax, eax
jmp 0x530587
call fcn.0052b77d
mov dword [eax], 0x1c
call fcn.0052b786
mov dword [eax], edi
jmp 0x530556
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00528d83
leave
ret
Function at 0x53273e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00529100
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5327d3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5c4d5c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x5327d3
cmp eax, 1
je 0x5327eb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5327d3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x5327a8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x5327cf
xor eax, eax
inc eax
jmp 0x532807
cmp esi, ebx
jae 0x5327d7
xor eax, eax
jmp 0x532807
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5c4d5c]
jmp 0x5327ed
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53292e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x58c850]
je 0x53295b
inc eax
cmp eax, 0x12
jb 0x53294c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x58c850]
jne 0x532a8f
mov eax, dword [0x5c4d34]
cmp eax, 1
je 0x532a6a
cmp eax, edx
jne 0x53298b
cmp dword [0x58bf94], 1
je 0x532a6a
cmp ecx, 0xfc
je 0x532a8f
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5329c4
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0052fcf0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0052c950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x532a06
lea eax, [ebp - 0x10c]
push eax
call fcn.0052c950
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x56e4b4
push edi
call fcn.0052bcf0
add esp, 0x10
push edi
call fcn.0052c950
push dword [esi + 0x58c854]
mov ebx, eax
call fcn.0052c950
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00529100
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0052fcf0
push edi
push ebx
call fcn.0052fd00
push 0x56e4b0
push ebx
call fcn.0052fd00
push dword [esi + 0x58c854]
push ebx
call fcn.0052fd00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00538c22
add esp, 0x2c
jmp 0x532a8f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x58c854]
push dword [esi]
call fcn.0052c950
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00528d83
pop edi
pop esi
pop ebx
leave
ret
Function at 0x538c22
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5c51b4], ebx
push esi
push edi
jne 0x538ca2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x538cdd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5733ec
push edi
call esi
test eax, eax
mov dword [0x5c51b4], eax
je 0x538cdd
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x5c51b8], eax
call esi
cmp dword [0x5c4d5c], 2
mov dword [0x5c51bc], eax
jne 0x538ca2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5c51c4], eax
je 0x538ca2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5c51c0], eax
mov eax, dword [0x5c51c0]
test eax, eax
je 0x538ce7
call eax
test eax, eax
je 0x538cce
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5c51c4]
test eax, eax
je 0x538cce
test byte [ebp - 8], 1
jne 0x538ce7
cmp dword [0x5c4d68], 4
jb 0x538ce1
or byte [ebp + 0x12], 0x20
jmp 0x538d06
xor eax, eax
jmp 0x538d16
or byte [ebp + 0x12], 4
jmp 0x538d06
mov eax, dword [0x5c51b8]
test eax, eax
je 0x538d06
call eax
mov ebx, eax
test ebx, ebx
je 0x538d06
mov eax, dword [0x5c51bc]
test eax, eax
je 0x538d06
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5c51b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53aab1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x53ab1c
push 0x3d
push dword [ebp + 8]
call fcn.0053b8a2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x53ab1c
cmp dword [ebp + 8], esi
je 0x53ab1c
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x5c4d7c]
cmp eax, dword [0x5c4d80]
jne 0x53ab02
mov edi, eax
call fcn.0053aa50
mov dword [0x5c4d7c], eax
cmp eax, ebx
jne 0x53ab5b
cmp dword [ebp + 0xc], ebx
je 0x53ab24
cmp dword [0x5c4d84], ebx
je 0x53ab24
call fcn.00535a83
test eax, eax
je 0x53ab5b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x53ac5f
push 4
call fcn.0052c538
cmp eax, ebx
pop ecx
mov dword [0x5c4d7c], eax
je 0x53ab1c
mov dword [eax], ebx
cmp dword [0x5c4d84], ebx
jne 0x53ab5b
push 4
call fcn.0052c538
cmp eax, ebx
pop ecx
mov dword [0x5c4d84], eax
je 0x53ab1c
mov dword [eax], ebx
mov ebx, dword [0x5c4d7c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0053aa03
mov edi, eax
test edi, edi
pop ecx
jl 0x53abb4
cmp dword [ebx], 0
je 0x53abb4
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0052a120
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x53ab9c
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x53abea
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x53ab93
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0052aa59
test eax, eax
pop ecx
pop ecx
je 0x53abea
jmp 0x53abe5
cmp dword [ebp - 4], 0
jne 0x53ac58
test edi, edi
jge 0x53abc4
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0052aa59
test eax, eax
pop ecx
pop ecx
je 0x53ab1c
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5c4d7c], eax
cmp dword [ebp + 0xc], 0
je 0x53ac41
push dword [ebp + 8]
call fcn.0052c950
inc eax
inc eax
push eax
call fcn.0052c538
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x53ac41
push dword [ebp + 8]
push esi
call fcn.0052fcf0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x53ac3a
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0052a120
pop ecx
cmp dword [ebp - 4], 0
je 0x53ac50
push dword [ebp + 8]
call fcn.0052a120
pop ecx
mov eax, dword [ebp - 8]
jmp 0x53ab1f
push esi
call fcn.0052a120
pop ecx
xor eax, eax
jmp 0x53ab1f
Function at 0x53ac66
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x573490
call fcn.0052ff34
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x5c51c8], edi
jne 0x53acaa
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53ac95
mov dword [0x5c51c8], ebx
jmp 0x53acaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x53acaa
mov dword [0x5c51c8], 2
mov eax, dword [0x5c51c8]
cmp eax, ebx
jne 0x53acca
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x53ad8d
cmp eax, 2
je 0x53acd3
cmp eax, edi
jne 0x53acfb
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x53ace6
mov eax, dword [0x5c5130]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x53ad02
xor eax, eax
jmp 0x53ad8d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00529100
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x53ad35
cmp esi, edi
jne 0x53ad4b
push dword [ebp - 0x24]
call fcn.0052c538
pop ecx
mov esi, eax
cmp esi, edi
je 0x53acfb
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x53ad7e
cmp dword [ebp + 0x14], edi
jne 0x53ad68
push edi
push edi
jmp 0x53ad6e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x53ad8a
push esi
call fcn.0052a120
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0052ff6f
ret
Function at 0x53ad96
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5734a0
call fcn.0052ff34
xor esi, esi
cmp dword [0x5c51cc], esi
jne 0x53adda
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53adc5
mov dword [0x5c51cc], edi
jmp 0x53adda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x53adda
mov dword [0x5c51cc], 2
mov eax, dword [0x5c51cc]
cmp eax, 2
je 0x53aebb
cmp eax, esi
je 0x53aebb
cmp eax, 1
jne 0x53ae1f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x53ae08
mov eax, dword [0x5c5130]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x53ae26
xor eax, eax
jmp 0x53aecd
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00529100
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x53ae5c
cmp edi, esi
jne 0x53ae77
lea eax, [ebx + ebx]
push eax
call fcn.0052c538
pop ecx
mov edi, eax
cmp edi, esi
je 0x53ae1f
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53aeaa
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x53ae94
push esi
push esi
jmp 0x53ae9a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x53aeb6
push edi
call fcn.0052a120
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x53aecd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0052ff6f
ret
Function at 0x53b478
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00529100
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0053280f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x53b5a2
push 2
push esi
push dword [ebp + 8]
call fcn.0053280f
add esp, 0xc
cmp eax, ebx
je 0x53b5a2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x53b545
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0052dfa0
push 0x8000
push dword [ebp + 8]
call fcn.0053b981
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x53b4fe
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.005303f2
add esp, 0xc
cmp eax, 0xffffffff
je 0x53b51e
sub edi, eax
test edi, edi
jg 0x53b4f6
jmp 0x53b536
call fcn.0052b786
cmp dword [eax], 5
jne 0x53b533
call fcn.0052b77d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0053b981
pop ecx
pop ecx
jmp 0x53b58d
jge 0x53b58d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053280f
push dword [ebp + 8]
call fcn.0053838d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x53b58d
call fcn.0052b77d
mov dword [eax], 0xd
call fcn.0052b786
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0053280f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x53b5a4
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00528d83
leave
ret
Function at 0x100024f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002551
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002512
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18

Function at 0x10002af9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1000a820
push str.FlsAlloc
push 0x1f
call fcn.10002a34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10002b2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000a108]
call esi
jmp 0x10002b33
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10002b77
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1000a844
push str.FlsGetValue
push 0x21
call fcn.10002a34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10002bae
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000a108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10002bb6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1000a858
push str.FlsSetValue
push 0x22
call fcn.10002a34
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10002bf0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000a108]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10004a5d
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40103b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401072
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40106e
jmp 0x401060
cmp esi, eax
jae 0x401072
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x401079
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
mov eax, dword [0x5861a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ecx + 0x44]
push esi
mov esi, dword [ebp + 8]
push 0x3e8
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023c6
sub eax, edx
dec eax
js 0x402428
mov cl, 0x5c
cmp byte [ebp + eax - 0x204], cl
je 0x4023f1
dec eax
jns 0x4023d4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050e45c
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
mov byte [ebp + eax - 0x203], 0
je 0x402428
push esi
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x604]
push str._s_s
push eax
call fcn.0050f6b2
add esp, 0x10
lea ecx, [ebp - 0x604]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050e45c
mov esp, ebp
pop ebp
ret 8
Function at 0x402710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528aeb
mov eax, dword fs:[0]
push eax
mov eax, 0x1940
call fcn.005100b0
mov eax, dword [0x5861a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5909b0]
xor esi, esi
mov edi, ecx
cmp eax, 1
jle 0x402758
mov ecx, dword [0x5909b4]
mov esi, dword [ecx + 4]
mov dword [0x58799c], 0
cmp eax, 2
jne 0x402780
push 4
push str.ihwl
push esi
call fcn.00514d2b
add esp, 0xc
test eax, eax
je 0x4027a3
mov eax, dword [0x5909b0]
cmp eax, 4
jne 0x4027cc
push 2
push 0x5384a8
push esi
call fcn.00514d2b
add esp, 0xc
test eax, eax
jne 0x4027cc
mov dword [0x58799c], 1
mov ecx, edi
call fcn.004025e0
test eax, eax
je 0x40285e
push 0
call fcn.00420ec1
test eax, eax
jne 0x402802
push 0xffffffffffffffff
push eax
push 0x67
call fcn.0040f862
jmp 0x40285e
mov eax, dword [0x537f58]
sub eax, 2
jne 0x4027a3
cmp dword [0x587998], eax
jne 0x4027a3
push 1
push 0x5384a5
push 0x5384a5
push str.https:__ec.gamania.co.jp
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
call fcn.00510042
push 0
call fcn.00420950
add esp, 4
push 1
push str.temp_log.txt
mov ecx, edi
call fcn.00402390
push 1
push str.Debugstring.txt
mov ecx, edi
call fcn.00402390
push 0
lea ecx, [ebp - 0x194c]
call fcn.004038c0
lea edx, [ebp - 0x194c]
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [edi + 0x20], edx
call fcn.004172a4
lea ecx, [ebp - 0x194c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403620
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e45c
mov esp, ebp
pop ebp
ret

Function at 0x402ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x538ae8
push str.launcher.brn
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00510665
mov esi, eax
add esp, 8
test esi, esi
je 0x402beb
mov eax, dword [edi + 0x98]
push esi
push 1
lea ecx, [ebp - 4]
lea eax, [eax + eax*2 + 0x1b]
push 4
push ecx
mov dword [ebp - 4], eax
call fcn.0051052f
push esi
call fcn.00510364
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x538aec
push str.launcher.brn
mov dword [ebp - 4], 0xffffffff
call fcn.00510665
mov esi, eax
add esp, 8
test esi, esi
je 0x402c60
push 0
push 4
push esi
call fcn.0051096d
push esi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.005108c6
push esi
call fcn.00510364
mov ecx, dword [ebp - 4]
add ecx, 0xffffffee
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
add esp, 0x20
shr eax, 0x1f
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret