joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ef66
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xac]
push ebx
mov ebx, dword [ebp + 0xa4]
push esi
xor esi, esi
cmp dword [ebp + 0xb0], esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], eax
jg 0x1002efa6
xor eax, eax
jmp 0x1002f099
dec dword [ebp + 0xb0]
push edi
mov edi, dword [ebp + 0xa8]
push esi
push edi
push eax
push ebx
call fcn.1002eda9
test eax, eax
jne 0x1002efc6
inc eax
jmp 0x1002f098
push 0x30
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x7c], 1
or edi, 8
call fcn.1002ed73
pop ecx
cmp eax, esi
je 0x1002efed
lea ecx, [ebp - 0x70]
push ecx
push edi
push esi
push dword [ebp - 0x74]
push ebx
call eax
jmp 0x1002effd
lea eax, [ebp - 0x70]
push eax
push edi
push esi
push dword [ebp - 0x74]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x1002f096
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.10031310
add esp, 0xc
mov edi, dword [ebp - 0x70]
push 0x3c
mov dword [ebp - 0x78], ebx
call fcn.1002ed73
pop ecx
push esi
push esi
push esi
push esi
cmp eax, esi
je 0x1002f03c
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push esi
push edi
call eax
jmp 0x1002f04c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x1002f075
cmp dword [ebp - 0x7c], esi
je 0x1002f075
push dword [ebp + 0xb0]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xa8]
push dword [ebp - 0x70]
call fcn.1002ef66
add esp, 0x10
mov dword [ebp - 0x7c], eax
jmp 0x1002f018
push dword [ebp - 0x70]
call fcn.1002ed95
push esi
push dword [ebp + 0xa8]
push dword [ebp - 0x74]
push dword [ebp - 0x80]
call fcn.1002eda9
neg eax
sbb eax, eax
inc eax
jmp 0x1002f098
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x98]
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x9c
leave
ret
Function at 0x10030f56
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x5c]
push 0
push eax
mov esi, ecx
call fcn.10031310
add esp, 0xc
push 9
pop ecx
xor eax, eax
push 0x1004fa98
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
push 0x1005bd1c
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10031008
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10031008
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10031003
cmp dword [ebp + 0x1b8], 0
je 0x10030fee
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.10030efe
jmp 0x1003100a
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
cmp dword [esi + 0x1c], eax
jne 0x10030ffe
cmp dword [esi + 0x18], ecx
je 0x10031003
mov dword [esi + 0x18], ecx
jmp 0x10030fde
xor eax, eax
inc eax
jmp 0x1003100a
xor eax, eax
mov ecx, dword [ebp + 0x1ac]
pop edi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x1b0
leave
ret 4

Function at 0x10031770
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100598e8]
jne 0x1003177a
repz ret
jmp fcn.10036bfc

Function at 0x10039771
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0xa52354e9
sbb ch, byte [ecx + 0x7b]
inc eax
stosb byte es:[edi], al
imul esi, dword [edi + 0x6a22df78], 0xffffffce
adc eax, 0x3bafd7d5
cdq
push ss
or dword [eax + 0x77], 0xffffffb7
mov edx, 0x6832368b
inc edx
test byte [ebp - 0x643d6b94], bh
mov al, 0x31
mov cs, word [edx - 0x42]
push ecx
test byte [ecx + 0x3c], cl
wait
outsd dx, dword [esi]
adc dword [eax + ebx - 0x601ab98e], edx
enter 0xffffffffffff9634, 0xffffffffffffffe0
pop ecx
fbstp tbyte [ebp + 0x50]
std
push ebp
dec edi
sub edi, ebp
jp 0x10039736
imul ebp
mov esi, 0xc54b4086
and eax, 0x6d346f85
and eax, 0x5418c0ef
xor byte [edi + 0xa2dbfc6], dh
pop edx
imul edx, edi, 0x1d
xchg edi, eax
loope 0x100397b9
dec ebp
mov bl, 0x76
and ebx, ebp
add dword [ecx - 0x60], edx
call dword [ebx - 0x680c0530]
cli
xchg edi, eax
mov byte [0x7cfb82ab], al
aas
xor ch, ah
xor byte [eax], al
and eax, 0x1069aef8
push edx
rol byte [ebp + 0x74], 1
imul edx, dword [eax], 0x7445d052
inc esp
test dword [esi - 0x13], ebx
mov es, word [0xf75954be]
aad 0x77
fimul word [edi]
sti
cmp bh, al
push eax
pop ss
push es
add dword [ecx + 7], eax
imul edx, dword [eax + eax*2 + 0x75292007], 0xe9dbe723
jg 0x100397a9
jmp 0xf84a49f3
Function at 0x1003eebd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10036539
and dword [ebp - 4], 0
cmp dword [0x1005ef14], 0
mov ebx, eax
jne 0x1003ef6e
push 0x10050b7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1003f01f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10050b70
push edi
call esi
test eax, eax
je 0x1003f01f
push eax
call fcn.100364c7
mov dword [esp], 0x10050b60
push edi
mov dword [0x1005ef14], eax
call esi
push eax
call fcn.100364c7
mov dword [esp], 0x10050b4c
push edi
mov dword [0x1005ef18], eax
call esi
push eax
call fcn.100364c7
mov dword [esp], 0x10050b30
push edi
mov dword [0x1005ef1c], eax
call esi
push eax
call fcn.100364c7
pop ecx
mov dword [0x1005ef24], eax
test eax, eax
je 0x1003ef6e
push 0x10050b18
push edi
call esi
push eax
call fcn.100364c7
pop ecx
mov dword [0x1005ef20], eax
mov eax, dword [0x1005ef20]
cmp eax, ebx
je 0x1003efc6
cmp dword [0x1005ef24], ebx
je 0x1003efc6
push eax
call fcn.10036542
push dword [0x1005ef24]
mov esi, eax
call fcn.10036542
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1003efc6
test edi, edi
je 0x1003efc6
call esi
test eax, eax
je 0x1003efbd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1003efbd
test byte [ebp - 0xc], 1
jne 0x1003efc6
or dword [ebp + 0x10], 0x200000
jmp 0x1003efff
mov eax, dword [0x1005ef18]
cmp eax, ebx
je 0x1003efff
push eax
call fcn.10036542
pop ecx
test eax, eax
je 0x1003efff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1003efff
mov eax, dword [0x1005ef1c]
cmp eax, ebx
je 0x1003efff
push eax
call fcn.10036542
pop ecx
test eax, eax
je 0x1003efff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1005ef14]
call fcn.10036542
pop ecx
test eax, eax
je 0x1003f01f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003f021
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb45b20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xa21000
lea edi, [esi - 0x6f0000]
push edi
jmp 0xb45b3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb45b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45b30
mov eax, 1
add ebx, ebx
jne 0xb45b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb45b64
jne 0xb45b83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45b83
dec eax
add ebx, ebx
jne 0xb45b70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb45b48
add ebx, ebx
jne 0xb45b7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb45bd5
xor ecx, ecx
sub eax, 3
jb 0xb45b9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb45c0a
sar eax, 1
mov ebp, eax
jmp 0xb45ba6
add ebx, ebx
jne 0xb45ba6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45b74
inc ecx
add ebx, ebx
jne 0xb45bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45b74
add ebx, ebx
jne 0xb45bc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb45bb6
jne 0xb45bd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb45bb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb45bf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb45be6
jmp 0xb45b36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb45bf4
add edi, ecx
jmp 0xb45b36
pop esi
mov edi, esi
mov ecx, 0x3ee1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb45c12
cmp byte [edi], 0x22
jne 0xb45c12
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 0xb45c17
lea edi, [esi + 0x73e000]
mov eax, dword [edi]
or eax, eax
je 0xb45c8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdb1920]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb1a9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb45c44
mov ecx, edi
jns 0xb45c73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb1aa0]
or eax, eax
je 0xb45c89
mov dword [ebx], eax
add ebx, 4
jmp 0xb45c61
call dword [esi + 0xdb1ab0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb45cc0
cmp al, 0xef
ja 0xb45cb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb45c95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb45ca2
mov ebp, dword [esi + 0xdb1aa4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xb45cf4
sub esp, 0xffffff80
jmp 0x4276b4
Function at 0x402766
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004023c3
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40266d
push edi
push edi
mov dword [0x422724], esi
mov dword [0x422728], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x422720], eax
cmp eax, edi
je 0x4027c1
cmp dword [0x422770], 2
je 0x4027b3
call fcn.00408c2e
mov eax, dword [0x422720]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x422720]
mov ecx, dword [0x422728]
mov dword [0x4228c4], edi
cmp ecx, edi
je 0x402807
cmp ecx, 1
je 0x4027fb
cmp ecx, 2
je 0x4027f7
cmp ecx, 3
je 0x4027f3
cmp ecx, 0x67
jle 0x4027ee
cmp ecx, 0x6b
jle 0x402870
push ecx
push 0x14
jmp 0x402841
push 0x12
jmp 0x4027fd
push 0x13
jmp 0x4027fd
push 0x11
push edi
call fcn.00409684
pop ecx
pop ecx
jmp 0x402870
mov dword [ebp + 8], edi
cmp dword [0x4228cc], edi
jne 0x402870
cmp eax, edi
je 0x40282e
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40282e
cmp dword [ebp + 8], edi
jne 0x40282e
xor eax, eax
jmp 0x402875
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402844
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402868
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x40285a
cmp dword [0x422774], 0xffffffff
je 0x402870
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409684
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x403442
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x4228d8], 0
push esi
mov esi, ecx
je 0x40345c
xor eax, eax
inc eax
jmp 0x4034a0
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403457
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403499
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403495
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4034a0
xor eax, eax
jmp 0x4034a0
mov ecx, esi
call fcn.00403327
pop esi
leave
ret

Function at 0x403ef5
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
rcl dword [eax], 0x8d
add al, 0xc1
rcl dword [eax], 0x8d
add al, 0xc1
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.004038f2
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x403ebe
call fcn.00403981
xchg byte [ecx], ah
mov ebx, 0x3c7e8b2c
add edi, esi
mov dword [ebp - 0x88], edi
invalid
invalid
add byte [eax], 0
Function at 0x404051
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x404058
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x404076
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4040d4
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4040bb
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4040c4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4040ce
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4040b0
invalid
inc ebp

Function at 0x4041f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x56fffffc], edi
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44

Function at 0x40420b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00403991
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403946
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
inc dword [eax]

Function at 0x405517
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
push dword [eax]
Function at 0x401c2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x22a], bl
jne 0x401d31
mov ax, word [esi + 0x580]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401c9b
mov ax, word [esi + 0x580]
and ax, 0x3ff
or ah, 4
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401c9b
push 5
push 0x6b
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x401d31
push eax
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x401bb3
push ebx
push eax
push dword [esi + 0x224]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [esi + 0x540], eax
lea eax, [ebp - 0xc]
push eax
push 0x9003
mov ecx, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00403e99
test al, al
je 0x401d21
lea eax, [esi + 0x270]
lea ecx, [ebp - 0xc]
push eax
call fcn.00404477
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push 0x9102
push dword [esi + 0x540]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x18]
call fcn.0040114d
lea ecx, [ebp - 0xc]
call fcn.0040114d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401043
mov eax, dword [str.xl_gamehall_hallupdate_mutex]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi], eax
je 0x40103c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
test eax, eax
sete cl
xor edx, edx
cmp eax, 0xb7
setne dl
mov dword [esi + 4], ecx
pop esi
mov eax, edx
ret
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x408040]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x418], eax
xor eax, eax
test ebx, ebx
push edi
je 0x401158
mov word [esp + 8], ax
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40116a
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.00401a60
add esp, 8
test eax, eax
je 0x40116a
mov word [eax], 0
mov edx, dword [str.HallConfig.ini]
xor eax, eax
mov word [esp + 0x210], 0
mov ecx, 0x81
lea edi, [esp + 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x210]
push edx
push eax
push ebx
push 0x4061d8
push str.File
push str.HallUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 1
mov ecx, dword [esp + 0x41c]
call fcn.00401ac1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x41c]
xor eax, eax
call fcn.00401ac1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x408040]
push edi
mov dword [esp + 0x474], eax
xor eax, eax
mov word [esp + 0x60], 0
mov ecx, 0x103
lea edi, [esp + 0x62]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esp + 0x68]
push 0x4061f8
push edx
mov dword [0x4082c0], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40131e
mov ecx, dword [esp + 0x474]
call fcn.00401ac1
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401332
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
push 0x4082c0
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x474]
mov eax, 1
call fcn.00401ac1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Copy file
Create directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x408040]
push ebx
push esi
push edi
mov dword [esp + 0x87c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40147d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4015cc
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov word [esp + 0x670], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x672]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
push 0x406228
push ecx
lea edx, [esp + 0x678]
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x4015cc
cmp eax, 0xffffffff
je 0x4015cc
xor eax, eax
mov word [esp + 0x468], bx
mov ecx, 0x81
lea edi, [esp + 0x46a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x260], bx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401520
push 0x406224
lea edx, [esp + 0x40]
push edx
call edi
test eax, eax
je 0x401591
push 0x40621c
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x401591
push str.Thumbs.db
lea ecx, [esp + 0x40]
push ecx
call edi
test eax, eax
je 0x401591
test byte [esp + 0x10], 0x10
jne 0x401591
mov eax, dword [ebp + 8]
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x470]
push ecx
call esi
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x268]
push ecx
call esi
push 0
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x470]
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401520
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x87c]
call fcn.00401ac1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x87c]
xor eax, eax
call fcn.00401ac1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401bcc
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406270
call fcn.00401f58
mov edi, 0x94
mov eax, edi
call fcn.00402f30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4082e0], ecx
mov eax, dword [esi + 4]
mov dword [0x4082ec], eax
mov edx, dword [esi + 8]
mov dword [0x4082f0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4082e4], esi
cmp ecx, 2
je 0x401c2c
or esi, 0x8000
mov dword [0x4082e4], esi
shl eax, 8
add eax, edx
mov dword [0x4082e8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401c67
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c67
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401c7f
cmp eax, 0x20b
je 0x401c6c
mov dword [ebp - 0x1c], esi
jmp 0x401c93
cmp dword [ecx + 0x84], 0xe
jbe 0x401c67
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401c8d
cmp dword [ecx + 0x74], 0xe
jbe 0x401c67
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402ed5
pop ecx
test eax, eax
jne 0x401cbf
cmp dword [0x4082cc], 1
jne 0x401cac
call fcn.004025c6
push 0x1c
call fcn.0040244f
push 0xff
call fcn.004022b4
pop ecx
pop ecx
call fcn.00402e33
mov dword [ebp - 4], esi
call fcn.00402c88
test eax, eax
jge 0x401cd8
push 0x1b
call fcn.00401ba7
pop ecx
call fcn.00402be9
mov dword [0x408974], eax
call fcn.00402a7f
mov dword [0x4082c8], eax
call fcn.004029e9
test eax, eax
jge 0x401cfd
push 8
call fcn.00401ba7
pop ecx
call fcn.004027b6
test eax, eax
jge 0x401d0e
push 9
call fcn.00401ba7
pop ecx
push 1
call fcn.004022e4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401d24
push eax
call fcn.00401ba7
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00402770
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401d45
movzx eax, word [ebp - 0x40]
jmp 0x401d48
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401780
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401d66
push edi
call fcn.0040240f
call fcn.00402431
jmp 0x401d98
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401f93
ret