joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001f0f4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x24], 0x504d444d
mov dword [ebp - 0x20], 0x6003a793
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
push 0
push 0x989680
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.30028538
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x38]
sub edx, 0xb6109100
mov eax, dword [ebp - 0x34]
sbb eax, 2
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 8], 0x20
je 0x3001f187
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x20
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3001c90e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x3001f5c8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x58]
cmp edx, dword [ecx + 0x60]
je 0x3001f5ed
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x3001f620
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov edx, dword [ebp - 4]
shr edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3001c90e
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x3001f65d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x60]
add eax, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x60], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x3002036c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x300203f0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x300203f0
push 0
push 0
push 0x10e
lea edx, [ebp - 0x118]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jle 0x300203f0
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x118]
push edx
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], 1
cmp dword [ebp - 0x11c], 0
je 0x300204c8
mov eax, dword [ebp - 0x11c]
push eax
call fcn.30020121
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x300204c8
cmp dword [ebp - 0x120], 0
je 0x30020440
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x118]
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
mov dword [ebp - 0x130], eax
jmp 0x3002045c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x300204bf
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0x30001c94
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.DLL_VerQueryValueA
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x300204bf
cmp dword [ebp - 0x128], 0x34
jne 0x300204bf
push 0x34
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.300281c0
add esp, 0xc
mov eax, 1
jmp 0x300204ca
mov eax, dword [ebp - 4]
push eax
call fcn.3002013b
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x300205f3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x3002061c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x30020735
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x24]
and eax, 0x80000000
test eax, eax
je 0x30020613
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x24]
and eax, 0x40000000
test eax, eax
je 0x30020613
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x24]
and eax, 0x80
test eax, eax
jne 0x30020682
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x24]
and eax, 0x40
test eax, eax
je 0x30020613
push 0x18
call fcn.30020121
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30020613
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0xc]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
adc ecx, dword [edx + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
add ecx, 0x274
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x27c]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x27c], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x280]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x280], edx
jmp 0x30020613
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x3002073d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3002076e
cmp dword [ebp - 8], 0xffffffff
jne 0x300207cc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x300207bc
push 0
push 0
push 0x10e
lea ecx, [ebp - 0x120]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jle 0x300207bc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x300207c8
cmp dword [ebp - 8], 0xffffffff
jne 0x300207cc
xor eax, eax
jmp 0x3002084a
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x300207f3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x3002084a
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3002081e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x3002084a
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x30020c70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
je 0x30020ca0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
je 0x30020ca0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
push edx
call fcn.3002013b
mov dword [ebp + 8], 0
pop ebp
ret 4
Function at 0x3002228f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x300222d2
cmp dword [ebp + 8], 0xffffffff
je 0x300222d2
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x300222d2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
je 0x300222d2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x300222db
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x30022304
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x3002233c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x30022331
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x30022331
mov eax, dword [ebp - 4]
jmp 0x3002233e
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x300222fb
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3002258e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
cmp dword [0x300320c4], 0
je 0x300225aa
mov eax, 1
jmp 0x3002271c
push 0x30001e28
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x300225cf
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp - 4], 0
jne 0x300225dc
xor eax, eax
jmp 0x3002271c
mov eax, dword [ebp - 4]
push eax
call fcn.3002255b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x300225ff
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x30001e1c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jne 0x30022624
xor eax, eax
jmp 0x3002271c
mov edx, dword [ebp - 0xe4]
cmp edx, dword [ebp - 4]
jb 0x3002263d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
cmp dword [ebp - 0xe4], eax
jbe 0x3002264c
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 1]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 4]
jb 0x30022665
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
cmp dword [ebp - 0xe4], ecx
jbe 0x3002266c
xor eax, eax
jmp 0x3002271c
push 0xc8
mov edx, dword [ebp - 0xe4]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.300281c0
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x30022699
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 2
jae 0x30022703
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax*8 + 0x3002a39c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x3002a398]
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.300224f4
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x30022690
mov eax, dword [ebp - 0xe0]
cmp eax, dword [ebp - 4]
jbe 0x30022690
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
cmp dword [ebp - 0xe0], ecx
jae 0x30022690
mov edx, dword [ebp - 0xe0]
mov dword [0x300320c4], edx
cmp dword [ebp - 0xdc], 0
jne 0x30022716
mov dword [0x300320c4], 0
mov eax, dword [ebp - 0xdc]
mov esp, ebp
pop ebp
ret
Function at 0x30022720
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x300320c8], 0
je 0x30022736
mov eax, dword [0x300320c8]
jmp 0x300227b2
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.30021564
cmp dword [ebp - 0xc], 1
je 0x30022760
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
call fcn.300236f8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0x5f
jne 0x30022783
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov edx, dword [ebp - 8]
sub edx, 0x10
xor eax, edx
mov dword [0x300320c8], eax
jmp 0x300227ad
cmp dword [ebp - 4], 0x62
je 0x3002279a
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ecx, dword [ebp - 8]
sub ecx, 8
xor eax, ecx
mov dword [0x300320c8], eax
mov eax, dword [0x300320c8]
mov esp, ebp
pop ebp
ret

Function at 0x300227dd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30001e38
push 0x30027cee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [0x300320c4], 0
jne 0x3002281d
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov eax, dword [ebp + 0x10]
push eax
call fcn.300227b6
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x30022833
xor eax, eax
jmp 0x30022881
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.300227c7
push eax
call dword [0x300320c4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x30022871
cmp dword [ebp - 0x20], 0xffffffff
jne 0x3002287e
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x30022899
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30001e48
push 0x30027cee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffa40
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x30022894
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x30022901
xor eax, eax
jmp 0x30022a3a
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
call fcn.300227dd
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x30022929
mov dword [ebp - 0x300], 0
jmp 0x300229f2
mov dword [ebp - 0x300], 1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x3002295f
mov dword [ebp - 0x300], 0
jmp 0x300229cf
mov dword [ebp - 0x5d0], 0x10007
lea eax, [ebp - 0x5d0]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3002298b
jmp 0x300229cf
mov dword [ebp - 0x2f8], 0x10007
lea edx, [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x300229b7
jmp 0x300229cf
mov ecx, dword [ebp - 0x518]
cmp ecx, dword [ebp - 0x240]
je 0x300229cf
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x300229f2
cmp dword [ebp - 0x2fc], 0
jle 0x30022a05
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xdead
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
cmp dword [ebp - 0x20], 0
je 0x30022a24
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x30022a34
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x300256b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x300256e4
cmp byte [eax], 0
je 0x30025728
lea eax, [eax + 1]
test eax, 3
je 0x300256e4
cmp byte [eax], 0
je 0x30025728
lea eax, [eax + 1]
test eax, 3
je 0x300256e4
cmp byte [eax], 0
je 0x30025728
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x300256e4
test cl, cl
lea eax, [eax - 4]
je 0x30025728
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30025728
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30025728
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30025728
lea eax, [eax + 1]
jmp 0x300256e4
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30025737
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3002575e
cmp word [eax], 0
je 0x30025757
lea eax, [eax + 2]
test eax, 3
je 0x3002575e
jmp 0x30025745
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30025799
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3002575e
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30025799
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30025799
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3002575e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3002768d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
cmp si, 0xffff
push edi
mov dword [ebp - 4], edx
je 0x30027702
test si, 0x3ff
je 0x30027702
push dword [ebp + 8]
call fcn.30027617
test eax, eax
jne 0x3002770b
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push eax
push eax
push 0x58
push edi
call esi
test eax, eax
je 0x3002770b
lea eax, [ebp - 0x24]
push 0x20
push eax
push 0x58
push edi
call esi
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x44]
push 3
lea ecx, [ebp - 0x14]
call fcn.3002758d
test eax, eax
je 0x300276fa
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x44]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x3002770b
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x30027705
mov byte [edx], 1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop esi
leave
ret 4
Function at 0x407010
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407023
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.004688e4
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4070e1
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x407051
push 0x5c
push ebx
call fcn.00469477
add esp, 8
test eax, eax
je 0x407075
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40709e
cmp word [ebx + 2], 0x5c
jne 0x40709e
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00469386
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4070c1
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x4070b7
cmp word [ebx + 2], 0x3a
jne 0x4070b4
cmp word [ebx + 4], 0x5c
jne 0x4070b4
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x4070b7
push 0x5c
push ebx
call fcn.00469386
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.004688e4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4070eb
push dword [ebp - 4]
call fcn.00467c86
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x407158
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.00469434
push esi
call fcn.00469711
add esp, 0x10
test eax, eax
je 0x407134
push esi
call fcn.0046982e
add esp, 4
test eax, eax
je 0x407121
mov edi, 1
jmp 0x407134
push esi
call fcn.00469711
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
push 0x5c
push eax
mov dword [ebp - 8], ebx
call fcn.00469386
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4071cb
mov ecx, dword [ebp - 8]
test edi, edi
je 0x4070f2
jmp 0x4071cb
mov edx, esi
sub edx, dword [ebp - 4]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407160
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407174
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x407197
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x407197
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.00469711
add esp, 4
test eax, eax
je 0x4071cb
push esi
call fcn.0046982e
add esp, 4
test eax, eax
je 0x4071b8
mov edi, 1
jmp 0x4071cb
push esi
call fcn.00469711
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.00467c86
push dword [ebp - 4]
call fcn.00467c86
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4071f0
Capabilities:
Create directory

Disassembly:
push dword [0x4a7a1c]
push 0
push 0x4815a0
call fcn.0043c000
mov eax, dword [0x4a7a1c]
add esp, 0xc
cmp word [eax], 0
je 0x40723c
push eax
call fcn.004689cd
add esp, 4
push 0
push dword [0x4a7a1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40723c
push dword [0x4a7a1c]
call fcn.0041ee10
add esp, 4
xor eax, eax
ret
mov eax, 0x67
ret
Function at 0x4077f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 0
push 0
push 0x186a0
push ebx
mov dword [ebp - 8], 0
call esi
push 1
push 0
push 0
push ebx
call esi
push 2
push 0
push 0
push ebx
mov edi, eax
call esi
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov esi, eax
call edi
cmp esi, 0x155cc0
jge 0x407865
push 1
push 0
push 0
push ebx
call edi
push 2
push 0
push 0
push ebx
mov esi, eax
call edi
push 0
push 0
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40786a
mov edi, 0x155cc0
lea eax, [edi + 8]
push 1
push eax
call fcn.004688e4
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4078f6
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40789a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
je 0x4078e3
cmp dword [esi], 0x77777777
jne 0x4078b5
cmp dword [ecx + eax + 4], 0x12478749
je 0x4078ce
inc eax
inc esi
cmp eax, edi
jb 0x4078a3
push ecx
call fcn.00467c86
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, ecx
add esi, 0x186a0
mov dword [0x4a7a14], esi
mov dword [ebp - 8], 1
push ecx
call fcn.00467c86
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret