joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x4021a0
call 0x4012d8
mov dword [section.DATA], eax
call sub.KERNEL32.dll_GetCommandLineA
mov esi, eax
xor ecx, ecx
mov edx, 1
cmp byte [esi], 0
je 0x4012d1
cmp byte [esi], 0x20
je 0x401050
nop
nop
nop
nop
add ecx, edx
cmp ecx, 2
je 0x401056
nop
nop
nop
nop
xor edx, edx
jmp 0x401053
or edx, 1
inc esi
jmp 0x40102c
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call 0x4012d8
mov dword [0x402004], esi
cmp eax, 0
je 0x4012b8
push esi
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40108e
nop
nop
nop
nop
jmp 0x4012b8
mov dword [0x402226], eax
bt dword [0x402226], 0
jb 0x4010ec
nop
nop
nop
nop
bt dword [0x402226], 1
jb 0x401107
nop
nop
nop
nop
bt dword [0x402226], 2
jb 0x401122
nop
nop
nop
nop
bt dword [0x402226], 4
jb 0x401140
nop
nop
nop
nop
bt dword [0x402226], 5
jb 0x40115e
bt dword [0x402226], 7
jb 0x40117c
jmp 0x401195
push 0
push 0x40219c
push 0x11
push 0x4021a8
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4010a1
push 0
push 0x40219c
push 0xf
push 0x4021ba
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4010af
push 0
push 0x40219c
push 0xc
push 0x4021ca
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4010bd
push 0
push 0x40219c
push 0xf
push 0x4021d7
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4010cb
push 0
push 0x40219c
push 0xd
push 0x4021e7
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4010d9
push 0
push 0x40219c
push 0xf
push 0x4021f5
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
push 1
push dword [0x402004]
call sub.KERNEL32.dll_SetFileAttributesA
cmp eax, 0
je 0x4012b8
push esi
call sub.KERNEL32.dll_GetFileAttributesA
mov dword [0x402226], eax
bt dword [0x402226], 0
jb 0x40120f
nop
nop
nop
nop
bt dword [0x402226], 1
jb 0x40122a
nop
nop
nop
nop
bt dword [0x402226], 2
jb 0x401245
nop
nop
nop
nop
bt dword [0x402226], 4
jb 0x401263
nop
nop
nop
nop
bt dword [0x402226], 5
jb 0x401281
bt dword [0x402226], 7
jb 0x40129f
jmp 0x4012d1
push 0
push 0x40219c
push 0x11
push 0x4021a8
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4011c4
push 0
push 0x40219c
push 0xf
push 0x4021ba
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4011d2
push 0
push 0x40219c
push 0xc
push 0x4021ca
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4011e0
push 0
push 0x40219c
push 0xf
push 0x4021d7
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4011ee
push 0
push 0x40219c
push 0xd
push 0x4021e7
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
jmp 0x4011fc
push 0
push 0x40219c
push 0xf
push 0x4021f5
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x40219c
push 0x20
push 0x402205
push dword [section.DATA]
call sub.KERNEL32.dll_WriteFile
push 0
call sub.KERNEL32.dll_ExitProcess
jmp dword [sym.imp.KERNEL32.dll_CreateFileA]
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40596d
pop dword [ebp - 0x44]
mov eax, 0x40596d
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xed3a88ea
add dword [ebp - 0x54], 0x6117bc61
mov dword [ebp - 0x50], 0x61506062
add dword [ebp - 0x50], 0xd0e2ebe3
mov dword [ebp - 0x4c], 0xb9eca08c
add dword [ebp - 0x4c], 0x925fa3a2
mov dword [ebp - 0x48], 0xd329a3cd
sub dword [ebp - 0x48], 0xd329a3cd
lea eax, [ebp - 0x54]
push eax
mov eax, 0x94fb7d66
sub eax, 0x94bb0d06
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xf87f06af
add dword [ebp - 0x54], 0x7bf362a7
mov dword [ebp - 0x50], 0x47809563
add dword [ebp - 0x50], 0xf9ebcc12
mov dword [ebp - 0x4c], 0xbc96aeeb
sub dword [ebp - 0x4c], 0x5927427f
mov dword [ebp - 0x48], 0x235a8f47
add dword [ebp - 0x48], 0xdca570b9
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3a3cb
push 0
call eax
mov ecx, 0x531b20b9
add ecx, 0xace5355c
mov edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x44]
mov edi, 0x7b8f773b
add edi, 0x21668f54
mov dword [ebp - 0x24], 0xcb1c4e8e
mov esi, dword [ebx]
sub dword [ebp - 0x18], eax
add esi, edi
mov dword [edx], esi
xor dword [ebp - 0x18], 0x16ed35f2
add edx, 0x374b393a
add edx, 0xc8b4c6ca
add ebx, 0xc733735e
sub ebx, 0xc733735a
loop 0x405a7f
add eax, 0x14b27
mov ebx, eax
add eax, 0x18ea93eb
sub eax, 0x18ea93e6
mov ecx, 0x6e1d88dd
sub ecx, 0x6ddd88dd
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x5f3e2a2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call sym.ATL.DLL_AtlAxWinInit
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x5f3e2a87
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x5f3e2ad7
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.5f3e25b9
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [0x5f3ed5e0]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x5f3e2ace
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x5f3e2aef
cmp dword [ebp - 0xc], 0
je 0x5f3e2aef
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14

Function at 0x5f3e2af6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call sym.ATL.DLL_AtlAxWinInit
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x5f3e2b4e
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x5f3e2b9e
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.5f3e25b9
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [0x5f3ed5dc]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x5f3e2b95
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x5f3e2bb6
cmp dword [ebp - 0xc], 0
je 0x5f3e2bb6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14
Function at 0x5f3e30c6
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x5f3ed0b8
mov dword [0x5f3ed6d0], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call sym.ATL.DLL_AtlModuleInit
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x5f3e3113
push 0x10
push dword [ebp + 0x10]
push 0x5f3ed6c0
call fcn.5f3e93f0
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.5f3e9730
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x5f3e3164
cmp dword [ebp - 0xb4], 5
jae 0x5f3e31ba
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x5f3e31ba
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x5f3e3186
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x5f3e3174
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x5f3e31a3
jmp 0x5f3e31c0
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x5f3e6aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
jne 0x5f3e6acd
xor esi, esi
jmp 0x5f3e6afd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.5f3e9310
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x5f3e6b38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x5f3e6b31
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5f3e6bcd
xor esi, esi
jmp 0x5f3e6bcd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x5f3e6b5b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x5f3e6b6e
xor esi, esi
jmp 0x5f3e6bc4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x5f3e6b80
jmp 0x5f3e6b4b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5f3e6bc4
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x5f3e6bb6
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.5f3e9310
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.5f3e93f0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.5f3e6f55
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x5f3e6e4d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
jne 0x5f3e6e72
xor esi, esi
jmp 0x5f3e6ea2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.5f3e9310
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push 1
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x5f3e6edb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x5f3e6ed7
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x5f3e6f4b
xor eax, eax
jmp 0x5f3e6f4b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.5f3e9310
mov edi, esp
lea eax, [ebp - 8]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f3e6f2c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x5f3e6f26
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5f3e6f28
xor esi, esi
cmp esi, ebx
jl 0x5f3e6f40
push dword [ebp + 0xc]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push edi
mov byte [eax + edi], bl
call fcn.5f3e6f55
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10006cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10006cff
pop dword [ebp - 0x48]
mov eax, 0x989d961c
sub eax, 0x889d291d
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x1325509
sub dword [ebp - 0x58], 0xb2e00fbe
mov dword [ebp - 0x54], 0x3e1ae837
add dword [ebp - 0x54], 0xf418640e
mov dword [ebp - 0x50], 0xb3ccc99
add dword [ebp - 0x50], 0x410f7795
mov dword [ebp - 0x4c], 0xd46ad806
add dword [ebp - 0x4c], 0x2b9527fa
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xfb1f821b
sub dword [ebp - 0x58], 0x86ad18c5
mov dword [ebp - 0x54], 0x2c1a42ac
add dword [ebp - 0x54], 0x15521ec9
mov dword [ebp - 0x50], 0x2912face
sub dword [ebp - 0x50], 0xc5a38e62
mov dword [ebp - 0x4c], 0xec5d379d
sub dword [ebp - 0x4c], 0xec5d379d
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xa8da3b14
sub eax, 0x98d63ae4
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x49dd8
push 0
call eax
mov ecx, 0x18277187
sub ecx, 0x18271b61
mov ebx, eax
mov edx, 0xe63e7161
sub edx, 0xd6390361
add edx, dword [ebp - 0x48]
mov edi, 0x3ef79fdf
sub edi, 0x85baf804
mov esi, dword [edx]
xor dword [ebp - 0x34], ecx
sub esi, edi
sub dword [ebp - 0x1c], edx
mov dword [ebx], esi
mov dword [ebp - 4], 0xd1c1b6a4
add ebx, 0xc53724ec
sub ebx, 0xc53724e8
add edx, 0x95907d92
add edx, 0x6a6f8272
loop 0x10006e1c
add eax, 0xfec84c3d
sub eax, 0xfec700d2
xor ebx, ebx
add ebx, eax
add eax, 0x88ad24d
sub eax, 0x88ad248
mov ecx, 0x7ea796f6
add ecx, 0x9158690a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10006cf0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.10006cf0
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10006cf0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x406243
pop dword [ebp - 0x24]
mov eax, 0x406243
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x17cba35e
sub dword [ebp - 0x34], 0xc9795e13
mov dword [ebp - 0x30], 0x18e2375
add dword [ebp - 0x30], 0x30a528d0
mov dword [ebp - 0x2c], 0x36654602
sub dword [ebp - 0x2c], 0xea1901d4
mov dword [ebp - 0x28], 0x730ef4c8
sub dword [ebp - 0x28], 0x730ef4c8
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x45b45b46
add dword [ebp - 0x34], 0x2ebe0e10
mov dword [ebp - 0x30], 0x6e84b537
sub dword [ebp - 0x30], 0x2d1853c2
mov dword [ebp - 0x2c], 0xc9580e98
sub dword [ebp - 0x2c], 0x65e8a22c
mov dword [ebp - 0x28], 0x453df66c
sub dword [ebp - 0x28], 0x453df66c
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x74bd695f
add eax, 0x8b8317a1
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36243
push 0
call eax
mov ecx, 0x4479
mov edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x24]
mov esi, 0xfc9afc75
add esi, 0x4cd8c787
mov dword [ebp - 8], 0x244e0683
mov edx, dword [ebx]
xor dword [ebp - 4], edi
sub edx, esi
xor dword [ebp - 0x20], edx
mov dword [edi], edx
xor dword [ebp - 0x20], 0xbe121279
add edi, 0xc4be1e03
sub edi, 0xc4be1dff
add ebx, 0x986e22cc
add ebx, 0x6791dd38
loop 0x40634f
add eax, 0x9e549cb6
add eax, 0x61ac6801
mov ebx, eax
add eax, 5
mov ecx, 0x8e887de2
add ecx, 0x71b7821e
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc