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

Disassembly:
push 0xffffffffffffffff
push 0x425acc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.0041969c
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x2c]
push edx
push eax
push str.Driver
push ecx
mov dword [esp + 0x148], 0
mov dword [esp + 0x2c], 0x100
call ebp
test eax, eax
jne 0x40807e
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.00419855
lea esi, [edi + 0x3c]
push eax
mov ecx, esi
mov byte [esp + 0x134], 1
call fcn.004198e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call fcn.004197e7
jmp 0x40808d
lea esi, [edi + 0x3c]
push 0x42e88c
mov ecx, esi
call fcn.0041992f
push esi
lea eax, [esp + 0x14]
push str.SystemCurrentControlSetServicesClass_
push eax
call fcn.00419ab2
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
mov byte [esp + 0x144], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea ecx, [esp + 0x10]
neg ebx
sbb ebx, ebx
mov byte [esp + 0x130], 0
inc ebx
call fcn.004197e7
test bl, bl
je 0x408142
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push str.InfPath
push ecx
mov dword [esp + 0x2c], 0x100
call ebp
test eax, eax
jne 0x408137
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.00419855
push eax
lea ecx, [edi + 0x58]
mov byte [esp + 0x134], 3
call fcn.004198e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call fcn.004197e7
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x124
ret 4
Function at 0x4084d0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x425bb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov dword [esp + 0x1c], ecx
mov eax, 0x100
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
call fcn.0041969c
lea eax, [esp + 4]
xor ebp, ebp
push eax
push 0x20019
push ebp
push str.EnumPCMCIA
push 0x80000002
mov dword [esp + 0x24c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408708
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push ebx
mov ebx, 2
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
inc ebp
push eax
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
je 0x4086fa
mov esi, str.PCCARD
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408597
test cl, cl
je 0x408593
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408597
add eax, ebx
add esi, ebx
test cl, cl
jne 0x408575
xor eax, eax
jmp 0x40859c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4086e9
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4086e9
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14c]
push eax
push ecx
push 0
push edx
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
je 0x4086d6
mov eax, dword [esp + 0x2c]
lea esi, [eax + 4]
push str.PCMCIA_
lea ecx, [esp + 0x2c]
call fcn.00419855
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x250], 1
call fcn.00419a3e
push 0x42e650
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x24c], bl
push eax
call fcn.00419a3e
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x250], 3
call fcn.00419a3e
mov eax, dword [eax]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x24c], 4
call fcn.00418056
lea ecx, [esp + 0x24]
mov byte [esp + 0x244], 3
call fcn.004197e7
lea ecx, [esp + 0x38]
mov byte [esp + 0x244], bl
call fcn.004197e7
lea ecx, [esp + 0x34]
mov byte [esp + 0x244], 1
call fcn.004197e7
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 0
call fcn.004197e7
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x14c]
push edx
push eax
push 0
push ecx
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
jne 0x4085f8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0x100
cmp ebp, 0x14
mov dword [esp + 0x20], 0x100
jb 0x408540
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
pop edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x238], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 0x230]
pop ebp
mov dword fs:[0], ecx
add esp, 0x238
ret
Function at 0x409010
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425d89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebp
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x234], 0
call fcn.0041969c
mov ebp, 0x100
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
mov dword [esp + 0xc], ebp
call fcn.0041969c
lea eax, [esp + 8]
xor esi, esi
push eax
push 0x20019
push esi
push str.Config_ManagerEnum
push 0x80000006
mov byte [esp + 0x248], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091a9
push edi
xor edi, edi
mov dword [esp + 0x18], ebp
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x40]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
inc edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40919d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409191
lea ecx, [esp + 0x10]
lea edx, [esp + 0x130]
push ecx
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ecx
push str.HardWareKey
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409186
mov eax, dword [esp + 0x240]
lea esi, [esp + 0x130]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40913c
test cl, cl
je 0x409138
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40913c
add eax, 2
add esi, 2
test cl, cl
jne 0x409118
xor eax, eax
jmp 0x409141
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
and ecx, 0xff
mov esi, ecx
je 0x409186
lea edx, [esp + 0x30]
lea ecx, [esp + 0x20]
push edx
call fcn.00419855
mov ecx, dword [esp + 0x244]
push eax
mov byte [esp + 0x23c], 3
call fcn.004198e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x238], 2
call fcn.004197e7
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x18], ebp
je 0x40908f
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
call fcn.004197e7
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 0
call fcn.004197e7
lea ecx, [esp + 0x23c]
mov dword [esp + 0x234], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x230
ret
Function at 0x4096b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x425f4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x427270
lea ecx, [esi + 0x38]
mov dword [esp + 0x10], 0xc
call fcn.004197e7
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 0xb
call fcn.004197e7
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0xa
call fcn.004197e7
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 9
call fcn.004197e7
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 8
call fcn.004197e7
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 7
call fcn.004197e7
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call fcn.004197e7
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call fcn.004197e7
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call fcn.004197e7
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call fcn.004197e7
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call fcn.004197e7
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.004197e7
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.004197e7
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x409c10
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
mov word [ebx + 0x3e], 0x4e4
je 0x409c2a
lea edi, [ebx + 4]
jmp 0x409c2c
xor edi, edi
mov ecx, 0xd
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
ja 0x409c7e
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
push esi
call fcn.00419d2e
add esp, 4
mov dword [ebx + 0x38], eax
push eax
push esi
lea eax, [esp + 0x20]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x409ca8
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x42e650
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x409cd0
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
test ebx, ebx
je 0x409cd9
lea edi, [ebx + 4]
jmp 0x409cdb
xor edi, edi
mov esi, dword [esp + 0xc]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409d12
cmp dword [esp + 0x10], 4
jb 0x409d12
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [ebx + 0x3c], edx
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, 0xfeef04bd
pop edi
pop esi
pop ebx
sete al
add esp, 0x110
ret 4
Function at 0x40a740
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push ebp
push esi
push edi
lea esi, [ecx + 0x56]
lea edx, [esi + 2]
inc esi
mov dword [esp + 0x14], edx
mov dl, byte [esi - 1]
cmp dl, 0xff
mov dword [esp + 0x10], esi
je 0x40a827
test dl, dl
je 0x40a775
mov bl, byte [esi]
inc esi
mov byte [esp + 0x18], bl
mov dword [esp + 0x10], esi
jmp 0x40a77b
xor bl, bl
mov byte [esp + 0x18], bl
movzx bp, bl
mov bl, byte [ecx + 0x10]
xor edi, edi
cmp bl, 0xff
je 0x40a816
cmp dl, bl
je 0x40a7a5
inc edi
mov esi, edi
and esi, 0xffff
mov bl, byte [esi + ecx + 0x10]
cmp bl, 0xff
jne 0x40a78d
jmp 0x40a812
mov esi, dword [esp + 0x14]
cmp dl, 0x15
jne 0x40a7d5
mov bl, byte [esi + 2]
lea edx, [esi + 2]
test bl, bl
je 0x40a7c0
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x40a7b8
mov bl, byte [edx + 1]
inc edx
test bl, bl
je 0x40a7d0
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x40a7c8
inc edx
sub edx, esi
mov ebp, edx
test bp, bp
je 0x40a812
and ebp, 0xffff
mov edi, ebp
mov dl, byte [esi]
xor dl, al
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x1c]
and edx, 0xff
mov ebx, edx
and edx, 0xf
shr ebx, 4
mov bx, word [ecx + ebx*2 + 0x36]
xor bx, word [ecx + edx*2 + 0x16]
xor edx, edx
mov dl, ah
xor ebx, edx
inc esi
dec edi
mov eax, ebx
jne 0x40a7e2
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
and edx, 0xff
add esi, edx
jmp 0x40a74c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40aa50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 2
call fcn.0041969c
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.0041969c
lea ecx, [esp + 8]
mov byte [esp + 0x24], 4
call fcn.0041969c
mov bl, 5
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.00419772
lea eax, [esp + 0x34]
push 0x42eacc
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00419a3e
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 6
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.004197e7
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push edx
call fcn.00417af0
cmp eax, 0xffffffff
je 0x40abd7
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
mov esi, dword [eax - 8]
call fcn.00417af0
add eax, esi
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041792d
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 7
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.004197e7
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x22
jne 0x40ab9e
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0041792d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.004197e7
push 0x42eac8
lea ecx, [esp + 0x14]
call fcn.00417af0
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.00417a58
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 9
call fcn.004198e0
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
jmp 0x40abd2
push 0x42e5a4
lea ecx, [esp + 0xc]
call fcn.00417af0
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00417a58
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0xa
call fcn.004198e0
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.004197e7
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004196ac
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 4
call fcn.004197e7
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004197e7
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.004197e7
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.004197e7
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 0
call fcn.004197e7
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x40c1a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429140
push 0x411c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x435688], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x435684], ecx
shl ecx, 8
add ecx, edx
mov dword [0x435680], ecx
shr eax, 0x10
mov dword [0x43567c], eax
call fcn.00411be0
test eax, eax
jne 0x40c20a
push 0x1c
call fcn.0040c350
add esp, 4
call fcn.00410e50
test eax, eax
jne 0x40c21d
push 0x10
call fcn.0040c350
add esp, 4
mov dword [ebp - 4], 0
call fcn.004119d0
call fcn.0040de90
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436c90], eax
call fcn.00411870
mov dword [0x43566c], eax
test eax, eax
je 0x40c250
mov eax, dword [0x436c90]
test eax, eax
jne 0x40c25a
push 0xffffffffffffffff
call fcn.0040cb40
add esp, 4
call fcn.004115c0
call fcn.004114d0
call fcn.0040cb10
mov esi, dword [0x436c90]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40c339
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40c2a1
test al, al
je 0x40c2a1
and eax, 0xff
push eax
call fcn.00411470
add esp, 4
test eax, eax
je 0x40c27b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40c27b
cmp byte [esi], 0x22
jne 0x40c2aa
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40c2ba
cmp al, 0x20
ja 0x40c2ba
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40c2aa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40c2db
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40c2e0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040cb40
jmp 0x40c31e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40c2aa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40c339
Function at 0x40c840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40c86c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x436b80]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x40c8a7
push 2
push ebp
push ecx
call fcn.0040c590
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40ca09
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40c951
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40c902
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40c8ef
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40c8d2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c9fa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40c94d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40c8ce
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40c9e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c9a5
cmp eax, 5
jne 0x40c98e
call fcn.0040f4c0
mov dword [eax], 9
call fcn.0040f4d0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040f440
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40c9c5
cmp byte [ebp], 0x1a
jne 0x40c9c5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040f4c0
mov dword [eax], 0x1c
call fcn.0040f4d0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40c94d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca3a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40c951
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40c951
Function at 0x40cb80
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040cc40
mov eax, dword [0x4356b8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40cba4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4356b4], 1
mov byte [0x4356b0], bl
jne 0x40cbfe
mov ecx, dword [0x436c88]
test ecx, ecx
je 0x40cbec
mov esi, dword [0x436c84]
sub esi, 4
cmp esi, ecx
jb 0x40cbec
mov eax, dword [esi]
test eax, eax
je 0x40cbe5
call eax
mov ecx, dword [0x436c88]
sub esi, 4
cmp esi, ecx
jae 0x40cbd7
push 0x42e084
push 0x42e07c
call fcn.0040cc60
add esp, 8
push 0x42e090
push 0x42e088
call fcn.0040cc60
add esp, 8
test ebx, ebx
je 0x40cc1d
call fcn.0040cc50
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4356b8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410e50
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00412f90
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x42f450], eax
je 0x410ea8
push 0x74
push 1
call fcn.00413930
mov esi, eax
add esp, 8
test esi, esi
je 0x410ea8
mov eax, dword [0x42f450]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x410ea8
push esi
call fcn.00410eb0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x410ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x42f450]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x410f3e
push 0x74
push 1
call fcn.00413930
mov esi, eax
add esp, 8
test esi, esi
je 0x410f34
mov ecx, dword [0x42f450]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x410f34
push esi
call fcn.00410eb0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040c350
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x411870
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x435930]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4118b2
call edi
mov esi, eax
test esi, esi
je 0x41189c
mov eax, 1
jmp 0x4118ad
call ebp
mov ebx, eax
test ebx, ebx
je 0x4119bf
mov eax, 2
mov dword [0x435930], eax
cmp eax, 1
jne 0x411952
test esi, esi
jne 0x4118cb
call edi
mov esi, eax
test esi, esi
je 0x4119bf
cmp word [esi], 0
mov eax, esi
je 0x4118e5
add eax, 2
cmp word [eax], 0
jne 0x4118d3
add eax, 2
cmp word [eax], 0
jne 0x4118d3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x411944
push edi
call fcn.0040d2e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x411944
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x411936
push ebx
call fcn.0040cc80
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4119bf
test ebx, ebx
jne 0x411963
call ebp
mov ebx, eax
test ebx, ebx
je 0x4119bf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41197b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41196b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41196b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040d2e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41199d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret