joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40da62
mov eax, dword [0x447ba0]
test eax, eax
je 0x40da56
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40dad1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40da77
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40daef
mov eax, dword [0x447ba0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dac2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40dae0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40daa3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40d9f2
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40da07
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40da45
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40da45
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447ba0]
jmp 0x40da30
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40d9fd
call sym._fc_key_init_once
mov eax, dword [0x447ba0]
jmp 0x40da3b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40dca0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40dcd0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x4109b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x411320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x411370
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Encode data using xor
Get memory capacity

Disassembly:
mov dword [0x41f9e8], esi
push ebp
push esp
mov dword [0x41f9ec], edi
pop dword [0x41f9f8]
mov dword [0x41f9f0], ebx
pop dword [0x41f9f4]
mov dword [0x41f9e8], esi
jmp loc.00401750
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00408d33
pop ecx
test eax, eax
je 0x401046
push str.Windows_original_main_args:_n
call fcn.00408bef
xor esi, esi
pop ecx
cmp dword [0x425628], esi
jle 0x401046
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408bef
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401027
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0040f2db
call fcn.0040392e
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039b0
pop ecx
pop ecx
mov esi, eax
call fcn.00403934
xor ecx, ecx
test edi, edi
jle 0x401080
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401075
mov eax, dword [0x424010]
and dword [esi + ecx*4], 0
mov ebx, eax
test eax, eax
jne 0x401091
mov ebx, dword [esi]
mov ecx, dword [0x42400c]
test ecx, ecx
jne 0x40109d
mov ecx, dword [esi]
mov eax, dword [0x425420]
push 0
push 0
push 1
test eax, eax
setne dl
movzx edx, dl
push edx
push ebx
push ecx
push 0x41c24c
push 0x41c23c
push dword [0x425424]
push 1
push eax
push 1
push esi
push edi
call fcn.00403472
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x403e2f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403ed2
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f2db
pop ecx
pop ecx
test eax, eax
je 0x403ebb
test ebx, ebx
je 0x403eaf
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040f2db
pop ecx
pop ecx
test eax, eax
jle 0x403ebb
push ebx
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403e7c
xor edi, edi
cmp ebx, edi
jne 0x403ed6
xor eax, eax
jmp 0x403f42
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403f05
call fcn.00403a18
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ed2
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ed2
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef5
cmp dword [ebp - 0x70], edi
je 0x403f38
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098e8
add ebp, 0x9c
leave
ret
Function at 0x408f37
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x422550
call fcn.0040dcb0
xor esi, esi
cmp dword [0x4274a8], esi
jne 0x408df7
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x408e0a
mov dword [ebp - 0x1c], esi
jmp 0x408e40
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x408e05
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x408e05
cmp dword [eax + 0x400074], 0xe
jbe 0x408e05
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f80c
test eax, eax
jne 0x408e51
push 0x1c
call fcn.0040f2db
pop ecx
call fcn.0040d831
test eax, eax
jne 0x408e62
push 0x10
call fcn.0040f2db
pop ecx
call fcn.0040dae6
mov dword [ebp - 4], esi
call fcn.0040f2db
test eax, eax
jns 0x408e7b
push 0x1b
call fcn.0040f2db
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4274a4], eax
call fcn.0040f2db
mov dword [0x42565c], eax
call fcn.0040f2db
test eax, eax
jns 0x408ea1
push 8
call fcn.0040f2db
pop ecx
call fcn.0040f1ff
test eax, eax
jns 0x408eb2
push 9
call fcn.0040f2db
pop ecx
push 1
call fcn.0040f2db
pop ecx
cmp eax, esi
je 0x408ec5
push eax
call fcn.0040f2db
pop ecx
mov eax, dword [0x425634]
mov dword [0x425638], eax
push eax
push dword [0x42562c]
push dword [0x425628]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x408ef2
push eax
call fcn.0040f2db
call fcn.00408bb3
jmp 0x408f27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040dcf5
ret
call fcn.0040f2db
jmp 0x408dd6

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed
Function at 0x40f2db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40f2ea
pop dword [ebp - 0x30]
mov eax, 0xc6566188
sub eax, 0xc6156e9e
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x9e2884a4
add dword [ebp - 0x40], 0xb029c0a7
mov dword [ebp - 0x3c], 0x3c127f01
sub dword [ebp - 0x3c], 0x9df32bc
mov dword [ebp - 0x38], 0xbf6c4485
sub dword [ebp - 0x38], 0x73200057
mov dword [ebp - 0x34], 0x683cc699
sub dword [ebp - 0x34], 0x683cc699
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xd0f5f12a
add dword [ebp - 0x40], 0xa37c782c
mov dword [ebp - 0x3c], 0x21701029
sub dword [ebp - 0x3c], 0xe003aeb4
mov dword [ebp - 0x38], 0x2e575303
sub dword [ebp - 0x38], 0xcae7e697
mov dword [ebp - 0x34], 0x9a7c4edb
add dword [ebp - 0x34], 0x6583b125
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xc01781ca
add eax, 0x402a3e82
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x37e05
push 0
call eax
mov ecx, 0x396b
mov ebx, eax
mov edx, 0x99453fa8
add edx, 0x66fdea58
add edx, dword [ebp - 0x30]
mov edi, 0xb0d3671a
add edi, 0x59eacde7
xor dword [ebp - 4], 0xb66be037
mov esi, dword [edx]
add dword [ebp - 0x28], 0xb8bdffd1
sub esi, edi
mov dword [ebp - 0x20], 0x71e70af4
mov dword [ebx], esi
mov dword [ebp - 4], 0xe7f5cee7
add ebx, 4
add edx, 4
loop 0x40f401
add eax, 0xd87f
mov ebx, eax
add eax, 0x49b3d1ee
add eax, 0xb64c2e17
mov ecx, 0x5847cb9f
sub ecx, 0x5807cb9f
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.00401ac0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x4010c1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x14]
push esi
push 0x8000040
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4010fc
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x40112a
push 0x40
push 0x101000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40112a
push esi
mov eax, 0x401130
push esi
push eax
push eax
push 0x80030008
call fcn.00401057
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x9861c2
Capabilities:
Encode data using xor

Disassembly:
xchg dword [esp], ecx
setns cl
push dword [esp + 2]
xchg word [esp + 2], ax
jmp 0x986218
jmp 0x9861ac
pop ax
lea esp, [esp + 2]
mov eax, dword [esp + 0x28]
mov ch, dh
call fcn.009861e2

Function at 0x988fad
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x96d547
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x96d561
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x96d550
pop esi
jmp 0x96d56c
ret 4
jmp 0x96d53a

Function at 0x9891a3
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x96ddd2
pushfd
or dword [esp], reloc.RASAPI32.dll_RasGetConnectStatusA
popfd
cpuid
nop
jmp 0x96dde9
pop ebx
ret
jmp 0x96ddc6

Function at 0xa7a0bf
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.00a78f99
mov byte [esp + 4], dl
lea esp, [esp + 2]
mov dword [esp + 0x1c], edi
lea esp, [esp + 0x1c]
jmp 0xa7a0c9
mov dword [esp], ebx
push word [esp + 1]
jmp 0xa7a0a9
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0xa7a1c4
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0xa78f94
Function at 0x4137b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x4137ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4137d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4137c0
mov eax, 1
add ebx, ebx
jne 0x4137e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4137d8
jne 0x4137f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4137d8
xor ecx, ecx
sub eax, 3
jb 0x413808
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41387a
mov ebp, eax
add ebx, ebx
jne 0x413813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413844
inc ecx
add ebx, ebx
jne 0x413830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x413825
jne 0x413841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413825
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413855
jmp 0x4137c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413864
add edi, ecx
jmp 0x4137c6
pop esi
mov edi, esi
mov ecx, 0x281
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x413882
cmp byte [edi], 5
jne 0x413882
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x413887
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x4138f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4138b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1583c]
or eax, eax
je 0x4138f0
mov dword [ebx], eax
add ebx, 4
jmp 0x4138d1
call dword [esi + 0x1584c]
mov ebp, dword [esi + 0x15840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41392a
sub esp, 0xffffff80
jmp 0x4021f0

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7f38471a
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2e6916ce
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0x403203
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x1b564eca
sub dword [ebp - 0x40], 0xcd04097f
mov dword [ebp - 0x3c], 0xd7b34832
add dword [ebp - 0x3c], 0x5a800413
mov dword [ebp - 0x38], 0xf74bef42
sub dword [ebp - 0x38], 0xaaffab14
mov dword [ebp - 0x34], 0x88c1d291
add dword [ebp - 0x34], 0x773e2d6f
lea eax, [ebp - 0x40]
push eax
mov eax, 0xce515a67
sub eax, 0xce10d9db
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x601a7bf8
sub dword [ebp - 0x40], 0xeba812a2
mov dword [ebp - 0x3c], 0x57a7650f
sub dword [ebp - 0x3c], 0x163b039a
mov dword [ebp - 0x38], 0x32d27b6b
sub dword [ebp - 0x38], 0xcf630eff
mov dword [ebp - 0x34], 0xc05d50fd
sub dword [ebp - 0x34], 0xc05d50fd
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34e2d
push 0
call eax
mov ecx, 0x412b
xor esi, esi
add esi, eax
mov edx, 0xb82aee58
sub edx, 0xb7e9de58
add edx, dword [ebp - 0x30]
mov ebx, 0xe072e3a4
add ebx, 0xba0fef5f
xor dword [ebp - 0x10], 0xb958af94
mov edi, dword [edx]
xor dword [ebp - 0x28], ecx
add edi, ebx
xor dword [ebp - 8], ecx
mov dword [esi], edi
xor dword [ebp - 0x14], eax
add esi, 0x6713281b
sub esi, 0x67132817
add edx, 0x241fe8af
add edx, 0xdbe01755
loop 0x403317
add eax, 0xca9dd541
sub eax, 0xca9cddc2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa16667e4
sub ecx, 0xa12667e4
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10001180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1000c004]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov edx, 0x400
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x40c]
call fcn.100051d0
lea eax, [ebp - 0x40c]
push eax
push str.____ERROR:__s_n
call fcn.10005ce0
add esp, 0x10
mov dword [ebp - 0x410], 0
lea eax, [ebp - 0x410]
push eax
push 0x10001160
push dword [0x1000c73c]
call dword [sym.imp.USER32.dll_EnumThreadWindows]
push 0x10
push 0x100081bc
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x410]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100019a0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1000c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x1000c6f8]
mov ebx, ecx
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x11c], ebx
call fcn.10001050
push str.datacfg_
lea ecx, [ebp - 0x110]
call fcn.10001050
push ebx
lea ecx, [ebp - 0x110]
call fcn.10001050
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x110]
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10001a55
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x10001aea
call esi
push eax
lea eax, [ebp - 0x110]
push eax
push str.Could_not_open_cfg__s___lu__n
call fcn.10005ce0
add esp, 0xc
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006e56
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x118]
cmp eax, 0xfffffffd
jbe 0x10001a84
lea eax, [ebp - 0x110]
push eax
push str.Refusing_to_open_cfg__s_as_it_is_too_big_n
call fcn.10005ce0
add esp, 8
jmp 0x10001ae3
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
push 0
push 0
push dword [ebp - 0x118]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.Running_cfg__s_n
mov byte [ecx + esi - 1], 0xa
mov eax, dword [ebp - 0x118]
mov byte [eax + esi], bl
call fcn.10005ce0
add esp, 8
mov ecx, esi
call fcn.10001380
mov bl, 1
test esi, esi
je 0x10001ae3
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006e56
mov esp, ebp
pop ebp
ret
Function at 0x10002ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x1000c6f8], ecx
mov dword [0x1000c6fc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x10002b50
push 0
push 0
mov dword [0x1000c73c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10005d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x618
mov eax, dword [0x1000c004]
xor eax, esp
mov dword [esp + 0x614], eax
cmp dword [0x1000c740], 0
je 0x10005daa
push edx
lea eax, [esp + 0x214]
mov dword [esp + 8], 0x400
push ecx
push eax
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov ecx, 0x10005170
mov dword [esp + 0x14], 0
call fcn.10002f20
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x21c]
sub eax, ecx
add esp, 0xc
cmp eax, 0x400
mov ecx, 0x3ff
cmovge eax, ecx
push 0x1000c744
mov byte [esp + eax + 0x214], 0
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push 0
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
push dword [0x1000c740]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1000c744
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x614]
xor ecx, esp
call fcn.10006e56
mov esp, ebp
pop ebp
ret

Function at 0x10006102
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100061f7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100061f0
push ebx
cmp dword [ebp - 0x20], 0x10
jb 0x100061c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100061c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100061c0
mov edx, dword [esi]
test edx, edx
jne 0x1000618e
push 0x200
push edx
push dword [0x1000c758]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100061ef
lea ebx, [esi + 8]
jmp 0x100061b6
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100061b6
shl eax, 3
push eax
push edx
push 0
push dword [0x1000c758]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100061dc
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10006146
jmp 0x100061ef
push dword [esi]
push 0
push dword [0x1000c758]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], 0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10006e56
leave
ret