joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d8cf
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x1019214]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc ebx
mov dword [0x1019448], edi
cmp dword [esi + 0x20], edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x208], ebx
je 0x100da9d
lea eax, [ebp - 0x204]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x250]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x248], edi
push 0x1073
push dword [0x1019084]
mov dword [ebp - 0x238], 0x100
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x20]
cmp word [eax], di
jne 0x100d95f
mov dword [ebp - 0x210], 0x4b
mov dword [ebp - 0x208], edi
jmp 0x100da76
lea ecx, [ebp - 0x218]
push ecx
push edi
push ecx
push edi
push eax
push dword [0x1019098]
call fcn.0100a001
cmp eax, 2
mov dword [ebp - 0x208], edi
je 0x100d98f
mov dword [ebp - 0x210], 0x4a
jmp 0x100da76
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call fcn.0100a001
cmp dword [ebp - 0x20c], ebx
je 0x100d9cf
cmp dword [ebp - 0x20c], 2
je 0x100d9cf
cmp dword [ebp - 0x20c], 7
je 0x100d9cf
xor eax, eax
jmp 0x100d9d2
push 2
pop eax
mov ecx, dword [ebp - 0x214]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x100da64
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
mov dword [ebp - 0x210], 0x49
call fcn.0100a001
test eax, eax
jne 0x100da5b
push dword [ebp - 0x214]
push ebx
push dword [ebp - 0x20c]
push edi
push dword [esi + 0x20]
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100da5b
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100da5b
mov dword [ebp - 0x208], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100da6e
mov dword [ebp - 0x210], 0x76
cmp dword [ebp - 0x208], edi
jne 0x100da9d
lea eax, [ebp - 0x204]
push eax
movzx eax, word [ebp - 0x210]
push 0x10
push 0x48
push eax
push dword [ebp - 0x21c]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
pop ebx
call fcn.01016806
leave
ret 8
Function at 0x100e1d9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1019214]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [0x1019098], edi
mov dword [ebp - 0x218], eax
je 0x100e3a0
push ebx
mov dword [ebp - 0x20c], 1
push esi
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push dword [0x10190c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push edi
push eax
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call fcn.0100a001
test eax, eax
mov ebx, dword [ebp + 0xc]
push 3
pop esi
jne 0x100e297
inc dword [ebp - 0x20c]
cmp dword [ebp - 0x20c], 0x64
jb 0x100e210
cmp dword [ebp - 0x20c], 0x64
jne 0x100e306
mov eax, 0xaa
push 0x10
movzx eax, ax
push 0xa8
push eax
push dword [ebp - 0x218]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x14
jmp 0x100e39e
cmp ebx, edi
jbe 0x100e2bf
push 2
pop ecx
cmp ebx, ecx
jbe 0x100e2b2
cmp ebx, esi
je 0x100e2fe
push 4
pop eax
cmp ebx, eax
je 0x100e2f0
cmp ebx, 7
jne 0x100e2bf
mov word [ebp - 0x210], di
mov dword [ebp - 0x208], ecx
push dword [ebp - 0x208]
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100e261
mov eax, 0xa9
jmp 0x100e273
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x208], eax
jmp 0x100e2bf
mov dword [ebp - 0x208], edi
jmp 0x100e2bf
push edi
push edi
push 0x1004
push dword [0x1019084]
mov dword [ebp - 0x24c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x204]
mov dword [ebp - 0x238], eax
call esi
cmp ebx, 1
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], edi
je 0x100e352
cmp ebx, 2
je 0x100e352
cmp ebx, 7
mov dword [ebp - 0x230], 5
jne 0x100e35c
mov dword [ebp - 0x230], 4
lea eax, [ebp - 0x24c]
push eax
push edi
push 0x104d
push dword [0x1019084]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x100e39e
push ebx
push dword [ebp - 0x208]
lea eax, [ebp - 0x210]
push eax
push esi
push dword [0x1019084]
call fcn.0100df5e
push esi
push dword [0x1019084]
call fcn.0100db24
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01016806
leave
ret 8
Function at 0x100e724
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1019214]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [0x1019084]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1032
push edi
mov dword [ebp - 0x20c], eax
call esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x34
push 0x34
movzx eax, ax
push 0x33
push eax
push dword [ebp - 0x20c]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x14
cmp eax, 6
jne 0x100e875
push ebx
push ebx
push 0xb
push edi
call esi
or dword [ebp - 0x208], 0xffffffff
push 2
mov dword [ebp - 0x210], ebx
push 0xffffffffffffffff
jmp 0x100e836
test ebx, ebx
je 0x100e7db
and dword [ebp - 0x23c], 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x244]
push eax
push ebx
push 0x1073
push edi
mov dword [ebp - 0x22c], 0x100
call esi
jmp 0x100e7e3
and word [ebp - 0x204], 0
lea eax, [ebp - 0x204]
push eax
push dword [0x1019098]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100e81e
cmp ebx, eax
je 0x100e80a
push eax
push ebx
push 0x1008
push edi
call esi
jmp 0x100e82e
push 1
push eax
push eax
push eax
push edi
call fcn.0100df5e
and dword [ebp - 0x208], 0
jmp 0x100e82e
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x208], ebx
push 2
push dword [ebp - 0x208]
push 0x100c
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100e7a8
push 0
push 1
push 0xb
push edi
call esi
cmp dword [ebp - 0x210], 0
je 0x100e875
push 0x10
push 0x58
push 0x59
push dword [ebp - 0x20c]
push dword [0x1019530]
call fcn.01009e27
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01016806
leave
ret 4
Function at 0x100eba8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push 0
push 0x1032
push dword [0x1019084]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jbe 0x100ebd3
cmp eax, 1
je 0x100ebd7
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
pop ebp
ret 8
pop ebp
jmp fcn.0100e3b2
Function at 0x101691e
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x10024d0
call fcn.01016b74
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x101695b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101695b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1016973
cmp eax, 0x20b
je 0x1016960
mov dword [ebp - 0x1c], ebx
jmp 0x1016987
cmp dword [ecx + 0x84], 0xe
jbe 0x101695b
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1016981
cmp dword [ecx + 0x74], 0xe
jbe 0x101695b
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1059d94], 0xffffffff
or dword [0x1059d98], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10195b8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10195b4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1059d9c], eax
call fcn.01016b6c
cmp dword [0x1019220], ebx
jne 0x10169e2
push fcn.01016b6c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01016b55
push 0x1019010
push 0x101900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10195b0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10195ac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1019008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1016a78
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1016a4c
cmp al, 0x22
jne 0x1016a3e
cmp byte [esi], 0x22
jne 0x1016a55
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1016a5f
cmp al, 0x20
jbe 0x1016a51
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1016a83
movzx eax, word [ebp - 0x50]
jmp 0x1016a86
cmp byte [esi], 0x20
jbe 0x1016a55
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1016a78
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1016aa3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1016ad8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01016baf
ret
Function at 0x1016bdd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10024e8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1016c35
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100213a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1016c28
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1016c37
xor eax, eax
pop esi
leave
ret 4
Function at 0x1002b3f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [esi + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
inc dword [ebp - 4]
inc dword [ebp - 8]
mov ebx, eax
cmp ebx, edi
je 0x1002ba7
push ebx
push dword [esi + 0xc]
push 0x10013c0
push 1
call fcn.01004227
add esp, 0x10
mov eax, ebx
jmp 0x1002cf9
push dword [ebp - 4]
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
call ebx
push dword [ebp - 8]
mov dword [ebp + 8], eax
call ebx
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], edi
je 0x1002cd3
cmp eax, edi
je 0x1002cd3
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x18], edi
jbe 0x1002cda
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
cmp ebx, edi
jne 0x1002cb5
mov dword [ebp - 0xc], edi
cmp dword [0x1001240], edi
je 0x1002c8d
mov eax, 0x1001240
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp + 8]
push esi
call dword [eax]
xor ecx, ecx
mov ebx, eax
inc ecx
cmp ebx, ecx
jne 0x1002c4d
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
lea eax, [eax*4 + 0x1001240]
cmp dword [eax], edi
jne 0x1002c21
cmp ebx, edi
je 0x1002c8d
cmp ebx, ecx
jne 0x1002c6b
push dword [esi + 0xc]
push dword [ebp + 8]
push 0x1001380
push ecx
call fcn.01004227
add esp, 0x10
jmp 0x1002c83
push ebx
push dword [esi + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
push 0x1001330
push ecx
call fcn.01004227
add esp, 0x18
cmp dword [ebp - 0x14], edi
jne 0x1002ca4
mov dword [ebp - 0x14], ebx
jmp 0x1002ca4
push dword [esi + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
push 0x10012ec
push edi
call fcn.01004227
add esp, 0x14
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x1002bdc
jmp 0x1002cda
push ebx
push dword [esi + 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0x1001298
push 1
call fcn.01004227
add esp, 0x18
mov dword [ebp - 0x14], ebx
jmp 0x1002cda
mov dword [ebp - 0x14], 0xe
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 8], edi
je 0x1002ceb
push dword [ebp + 8]
call esi
pop ecx
cmp dword [ebp - 0x1c], edi
je 0x1002cf6
push dword [ebp - 0x1c]
call esi
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10032d2
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov esi, dword [ebp + 8]
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [esi + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
inc dword [ebp - 0xc]
mov ebx, eax
cmp ebx, edi
je 0x100332a
push dword [esi + 0xc]
push 0x1001724
push 1
call fcn.01004227
add esp, 0xc
mov eax, ebx
jmp 0x100344c
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1003347
mov dword [ebp - 8], 0xe
jmp 0x1003449
mov dword [ebp + 8], edi
cmp dword [ebp - 0x10], edi
jbe 0x100343f
mov eax, dword [ebp - 0xc]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp ebx, edi
jne 0x1003405
lea eax, [ebp - 0x18]
push eax
push 0x20019
push edi
push dword [ebp - 4]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
cmp ebx, edi
jne 0x1003420
mov eax, dword [esi + 0x14]
cmp dword [eax + 8], edi
je 0x10033ca
push 8
pop ecx
mov ebx, ecx
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [eax + ecx]
push esi
call fcn.01003216
test al, al
jne 0x10033eb
mov eax, dword [esi + 0x14]
add ebx, 4
mov ecx, ebx
cmp dword [ebx + eax], edi
jne 0x10033a7
push 0x57
pop ebx
push ebx
push dword [esi + 0xc]
push dword [ebp - 4]
push 0x10016e4
push 1
call fcn.01004227
add esp, 0x14
cmp dword [ebp - 8], edi
jne 0x10033eb
mov dword [ebp - 8], ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003353
jmp 0x100343f
push ebx
push dword [esi + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
push 0x1001690
push 1
call fcn.01004227
add esp, 0x18
jmp 0x100343c
push ebx
push dword [esi + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 4]
push 0x1001630
push 1
call fcn.01004227
add esp, 0x1c
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100389d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1004f88
call fcn.01003a44
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1006448
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10036b2
cmp eax, esi
jne 0x10036a5
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10036b5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100368c
xor esi, esi
inc esi
mov eax, dword [0x1006444]
cmp eax, esi
jne 0x10036c8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003703
mov eax, dword [0x1006444]
test eax, eax
jne 0x10036fd
mov dword [0x1006444], esi
push 0x1001184
push 0x1001178
call fcn.01003609
pop ecx
pop ecx
test eax, eax
je 0x1003703
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10037cd
mov dword [0x10060bc], esi
mov eax, dword [0x1006444]
cmp eax, esi
jne 0x1003727
push 0x1001174
push 0x1001168
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006444], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003734
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100644c], ebx
je 0x1003755
push 0x100644c
call fcn.010039b9
pop ecx
test eax, eax
je 0x1003755
push ebx
push 2
push ebx
call dword [0x100644c]
push dword [0x10060a4]
push dword [0x10060a8]
push dword [0x10060a0]
call fcn.0100351d
add esp, 0xc
mov dword [0x10060b8], eax
cmp dword [0x10060ac], ebx
jne 0x10037b3
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10060bc], ebx
jne 0x10037c1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10060b8]
call fcn.01003a89
ret
call fcn.01003c37
jmp 0x100366a
Function at 0x1004708
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1006070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x100489c
xor eax, eax
cmp ax, word [esi]
je 0x100489c
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.01004506
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1004885
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010044e8
cmp eax, ebx
jl 0x1004819
cmp dword [ebp - 0x1c], 1
jne 0x10047e4
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100477e
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x10047a8
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x1004859
xor eax, eax
mov word [esi], ax
call fcn.01004e31
test eax, eax
jne 0x10047da
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x10047ae
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x10047f6
cmp ax, 0x7a
jbe 0x1004802
cmp ax, 0x41
jb 0x10047a8
cmp ax, 0x5a
ja 0x10047a8
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x10047a8
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x10047a8
add esi, 8
jmp 0x10047a8
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1001ca8
push 0x3000000
push 0x1006430
mov dword [ebp - 0x10], eax
call fcn.01004242
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x100488e
call fcn.01004e31
xor esi, esi
inc esi
cmp eax, esi
je 0x1004880
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x1004880
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1001c48
jmp 0x1004830
mov dword [ebp - 0x18], esi
jmp 0x1004845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x10048a6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010038ac
leave
ret 4
Function at 0x1004e31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x1004ea2
xor ecx, ecx
cmp cx, word [eax]
je 0x1004ea2
push edi
push esi
push eax
call fcn.01004506
mov edi, eax
cmp edi, esi
je 0x1004e9d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004e6b
test al, 0x10
je 0x1004e6b
inc ebx
jmp 0x1004e86
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1004e7e
mov esi, 0x10b
cmp esi, 2
jne 0x1004e86
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x1004eac
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x402984
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403e18
test esi, esi
jne 0x4029ba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403f08
jmp 0x4029d8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402898
mov edi, eax
test esi, esi
je 0x4029d8
cmp dword [ebx], 0
je 0x4029d8
dec esi
jmp 0x4029c1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403030
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403010
xor eax, eax
push ebp
push 0x403009
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40304c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403010
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x403cfd
cmp word [0x41c218], 0xd7b2
jne 0x403cc5
cmp dword [0x41c220], 0
jbe 0x403cc5
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b030], 0
jne 0x403d19
push 0
push 0x41b064
push 0x41b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret