joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411030
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x423140]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x41104f
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 [0x42313c], 1
mov byte [0x423138], bl
jne 0x4110a9
mov ecx, dword [0x42742c]
test ecx, ecx
je 0x411097
mov esi, dword [0x427428]
sub esi, 4
cmp esi, ecx
jb 0x411097
mov eax, dword [esi]
test eax, eax
je 0x411090
call eax
mov ecx, dword [0x42742c]
sub esi, 4
cmp esi, ecx
jae 0x411082
push 0x41c020
push 0x41c014
call fcn.004110e0
add esp, 8
push 0x41c028
push 0x41c024
call fcn.004110e0
add esp, 8
test ebx, ebx
jne 0x4110d0
push ebp
mov dword [0x423140], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x411a90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x427420]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x411c3d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x427320]
lea edi, [ecx*4 + 0x427320]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x411c3d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x411afe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x411b0f
push 2
push ebp
push eax
call fcn.00411d90
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x411c6e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x411bb9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x411b6a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x411b57
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 0x411b3a
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 0x411c5f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x411bb5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x411b36
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411c2e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411c02
cmp eax, 5
jne 0x411beb
mov dword [0x4230fc], eax
mov dword [0x4230f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004138a0
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 0x411c22
cmp byte [ebp], 0x1a
jne 0x411c22
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4230f8], 0x1c
jmp 0x411c47
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4230f8], 9
pop edi
pop esi
pop ebp
mov dword [0x4230fc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411bb5
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 0x411c9f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x411bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x411bb9
Function at 0x4122f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004138a0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x412336
test byte [esp + 8], 2
je 0x412336
mov dword [0x4230f8], 0xd
mov dword [0x4230fc], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4127c9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x4127c9
and eax, 0xff
push eax
call fcn.004152b0
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x413290
Capabilities:
Terminate process

Disassembly:
cmp dword [0x423190], 1
jne 0x41329e
call fcn.00416a10
mov eax, dword [esp + 4]
push eax
call fcn.00416a50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4132c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00412ba0
mov eax, dword [0x427420]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x413422
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x427320]
test byte [edx + ecx*8 + 4], 1
je 0x413422
push 1
push ebp
push ebx
call fcn.00411d90
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41342c
push 2
push ebp
push ebx
call fcn.00411d90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41342c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4133c8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00416c30
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41336f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411a90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41338b
sub esi, eax
test esi, esi
jle 0x4133a1
jmp 0x413360
cmp dword [0x4230fc], 5
jne 0x41339e
mov dword [0x4230f8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00416c30
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00411d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x413409
push 0
push ecx
push ebx
call fcn.00411d90
add esp, 0xc
push ebx
call fcn.00413850
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x413409
mov dword [0x4230f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4230fc], eax
push 0
push edi
push ebx
call fcn.00411d90
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4230f8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x4166e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4235f8]
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 0x416722
call edi
mov esi, eax
test esi, esi
je 0x41670c
mov eax, 1
jmp 0x41671d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41682f
mov eax, 2
mov dword [0x4235f8], eax
cmp eax, 1
jne 0x4167c2
test esi, esi
jne 0x41673b
call edi
mov esi, eax
test esi, esi
je 0x41682f
cmp word [esi], 0
mov eax, esi
je 0x416755
add eax, 2
cmp word [eax], 0
jne 0x416743
add eax, 2
cmp word [eax], 0
jne 0x416743
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 0x4167b4
push edi
call fcn.00411290
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4167b4
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 0x4167a6
push ebx
call fcn.00411340
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 0x41682f
test ebx, ebx
jne 0x4167d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x41682f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4167eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4167db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4167db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00411290
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41680d
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
Function at 0x416a50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41f320
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x416a74
add eax, 8
inc ebp
cmp eax, 0x41f3b0
jb 0x416a65
cmp ecx, dword [ebp*8 + 0x41f320]
jne 0x416c1b
mov eax, dword [0x423190]
cmp eax, 1
je 0x416bdd
test eax, eax
jne 0x416aa0
cmp dword [0x41ccf4], 1
je 0x416bdd
cmp ecx, 0xfc
je 0x416c1b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416adb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x416b24
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41aaf0
add ebx, ecx
push ebx
call fcn.00411100
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41aad0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41f324]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00417d00
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x427320]
test eax, eax
je 0x416bee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x416bf8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41f324]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x416d00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x416d71
push ebx
call fcn.00416e30
add esp, 4
test eax, eax
jne 0x416d3f
mov dword [0x4230fc], 0xf
mov dword [0x4230f8], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x416d81
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x416e17
inc eax
cmp eax, 0x104
ja 0x416e17
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x416dd0
cmp eax, ecx
jg 0x416dad
mov eax, ecx
push eax
call fcn.00411290
mov edx, eax
add esp, 4
test edx, edx
jne 0x416dea
mov dword [0x4230f8], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x416dea
mov dword [0x4230f8], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x416e30
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x416e3e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x416e6d
cmp eax, 1
je 0x416e6d
mov eax, 1
ret
xor eax, eax
ret
Function at 0x418330
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4184ee
push 0x3d
push edi
call fcn.00419550
mov esi, eax
add esp, 8
test esi, esi
je 0x4184ee
cmp edi, esi
je 0x4184ee
mov dl, byte [esi + 1]
mov ecx, dword [0x423124]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x423120]
cmp eax, ecx
jne 0x418387
push eax
call fcn.004185c0
add esp, 4
mov dword [0x423120], eax
test eax, eax
jne 0x418402
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4183ae
mov eax, dword [0x423128]
test eax, eax
je 0x4183ae
call fcn.00417050
test eax, eax
je 0x4183fd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4183ba
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00411290
add esp, 4
mov dword [0x423120], eax
test eax, eax
je 0x4184ee
mov dword [eax], 0
mov eax, dword [0x423128]
test eax, eax
jne 0x4183fd
push 4
call fcn.00411290
add esp, 4
mov dword [0x423128], eax
test eax, eax
je 0x4184ee
mov dword [eax], 0
mov eax, dword [0x423120]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00418540
mov esi, eax
add esp, 8
test esi, esi
jl 0x4184ff
cmp dword [ebx], 0
je 0x4184ff
test ebp, ebp
je 0x4184f7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00411340
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x418459
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x418448
lea eax, [esi*4]
push eax
push ebx
call fcn.004193b0
add esp, 8
test eax, eax
je 0x418473
mov dword [0x423120], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4184e6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00411290
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4184e6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00411340
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x418477
test ebp, ebp
jne 0x4184e6
test esi, esi
jge 0x418509
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004193b0
add esp, 8
test eax, eax
je 0x4184ee
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x423120], eax
jmp 0x418477
Function at 0x4026c8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026d6
call dword [0x445024]
or eax, eax
je 0x4026d7
ret
mov al, 1
jmp fcn.00402754

Function at 0x4026e0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026ee
call dword [0x445028]
or eax, eax
jne 0x4026ef
ret
mov al, 2
jmp fcn.00402754

Function at 0x4026f8
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402730
test edx, edx
je 0x40271a
push eax
mov eax, ecx
call dword [0x44502c]
pop ecx
or eax, eax
je 0x402729
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402754
mov dword [eax], edx
mov eax, ecx
call dword [0x445028]
or eax, eax
jne 0x402713
ret
mov al, 1
jmp fcn.00402754
test edx, edx
je 0x402744
push eax
mov eax, edx
call dword [0x445024]
pop ecx
or eax, eax
je 0x402729
mov dword [ecx], eax
ret

Function at 0x402754
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x446004]
test ecx, ecx
je 0x402764
pop edx
call ecx
dec eax
mov al, byte [eax + 0x40277d]
jns 0x402778
call fcn.004061b8
mov eax, dword [eax + 4]
jmp fcn.00403a88

Function at 0x402798
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.004061b8
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x4027ad
ret
xor eax, eax
jmp fcn.00402754

Function at 0x4028f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402927
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b7c
jmp 0x402945
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402820
mov edi, eax
test ebx, ebx
je 0x402945
cmp dword [esi], 0
je 0x402945
dec ebx
jmp 0x40292e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40295c
Capabilities:
Terminate process

Disassembly:
cmp dword [0x44601c], 0
je 0x40296b
call dword [0x44601c]
mov eax, 0xd2
jmp fcn.00403a88
push eax
push ecx
mov eax, dword [eax]
call fcn.00402f44
pop ecx
pop eax
je 0x402f83
jmp ebx
pop ecx
jmp 0x40295c

Function at 0x402c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ca8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c88
xor eax, eax
push ebp
push 0x402c81
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 0x402cc4
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 0x402c88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x402f28
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402f42
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402f42
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402f2e
mov al, 0xa
jmp fcn.00402754
ret

Function at 0x402f74
Capabilities:
Terminate process

Disassembly:
cmp dword [0x44601c], 0
je 0x40296b
call dword [0x44601c]
mov eax, 0xd2
jmp fcn.00403a88
push eax
push ecx
mov eax, dword [eax]
call fcn.00402f44
pop ecx
pop eax
je 0x402f83
jmp ebx
pop ecx
jmp 0x40295c

Function at 0x402f8c
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402f44
mov eax, ebx
pop ebx
jne 0x402fa1
pop ecx
jmp 0x40295c
ret

Function at 0x4037f8
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov esi, 0x4464a4
lea edi, [ebp - 0x3c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop dword [0x4464c4]
pop dword [0x4464c0]
mov dword [0x4464b8], ebp
mov dword [0x4464bc], ebx
mov dword [0x4464ac], eax
mov dword [0x4464b4], edx
lea ecx, [ebp - 0x3c]
mov dword [0x4464a4], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x403841
mov ecx, dword [eax]
mov dword [0x4464b0], ecx
call fcn.004036f0
mov eax, dword [ebp + 0xc]
inc eax
mov byte [0x4464c8], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [0x4464cc], edx
je 0x403864
call dword [ecx + eax*4]
mov edx, dword [esp + 4]
test edx, edx
je 0x403871
mov eax, dword [ebp + 0xc]
call edx
cmp dword [0x446020], 0
jne 0x403887
mov byte [0x446028], 1
fnstcw word [section.DATA]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040395c
call fcn.00403798
ret 4

Function at 0x40395c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4464a4
mov esi, 0x446038
mov edi, 0x44603c
cmp byte [ebx + 0x24], 0
jne 0x40398b
cmp dword [edi], 0
je 0x40398b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x40397a
cmp dword [0x446040], 0
je 0x4039db
call fcn.004038d8
cmp byte [0x446048], 0
je 0x4039b8
mov edx, 0x445030
mov eax, 0x44621c
call fcn.004059d0
call fcn.00405953
jmp 0x4039d4
cmp byte [0x445010], 0
jne 0x4039d4
push 0
push 0x445050
push 0x445030
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x446040], eax
cmp byte [ebx + 0x24], 2
jne 0x4039eb
cmp dword [esi], 0
jne 0x4039eb
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00403738
cmp byte [ebx + 0x24], 1
jbe 0x4039fb
cmp dword [esi], 0
je 0x403a18
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403a18
call fcn.0040538c
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403a18
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403710
cmp byte [ebx + 0x24], 1
jne 0x403a26
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403a31
call fcn.00403928
cmp dword [ebx], 0
jne 0x403a3e
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4039db

Function at 0x403a7c
Capabilities:
Terminate process

Disassembly:
mov dword [0x446038], eax
jmp fcn.0040395c