joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4159f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [esp + 8]
add eax, 0xfffffffd
cmp eax, 4
push edi
ja case.0x415a07.4
jmp dword [eax*4 + 0x415bf8]
lea eax, [esi + 0x154]
call fcn.00415700
movzx ecx, word [esi + 0x38]
movzx edi, ax
add ecx, 1
cmp ecx, edi
je 0x415a68
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push ebx
call fcn.004127c0
add dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x415a68
jg 0x415a4a
cmp eax, dword [esi + 0x20]
jbe 0x415a68
movzx edx, word [esi + 0x38]
add edx, 1
push edx
push str.tftp_rx:_giving_up_waiting_for_block__d
push ebx
call fcn.00412850
add esp, 0xc
pop edi
mov eax, 0x47
pop ebx
ret
mov word [esi + 0x38], di
lea edi, [esi + 0x158]
mov eax, 4
mov ecx, edi
mov dword [esi + 0x14], 0
call fcn.004156d0
mov ax, word [esi + 0x38]
mov ecx, edi
call fcn.004156e0
mov eax, dword [esi + 0x140]
mov edx, dword [edi]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xc0]
push ecx
push 0
push 4
push edx
push eax
call dword [0x428400]
test eax, eax
jl 0x415bb4
mov edx, dword [esi + 0x14c]
xor eax, eax
add edx, 4
cmp dword [esi + 0x144], edx
pop edi
setl al
pop ebx
lea eax, [eax + eax + 1]
mov dword [esi], eax
xor eax, eax
ret
lea edi, [esi + 0x158]
mov eax, 4
mov ecx, edi
mov word [esi + 0x38], 0
mov dword [esi + 0x14], 0
call fcn.004156d0
mov ax, word [esi + 0x38]
mov ecx, edi
call fcn.004156e0
mov ecx, dword [esi + 0x140]
mov eax, dword [edi]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0xc0]
push edx
push 0
push 4
push eax
push ecx
call dword [0x428400]
test eax, eax
jge 0x415b4a
call dword [0x4283d8]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.00425520
push eax
push 0x429474
push ebx
call fcn.00412850
add esp, 0x14
pop edi
mov eax, 0x37
pop ebx
ret
pop edi
mov dword [esi], 1
xor eax, eax
pop ebx
ret
add dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.004127c0
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x415b8d
jg 0x415b7b
cmp eax, dword [esi + 0x20]
jbe 0x415b8d
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop edi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x140]
mov edx, dword [esi + 0x158]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xc0]
push ecx
push 0
push 4
push edx
push eax
call dword [0x428400]
test eax, eax
jge 0x415b88
call dword [0x4283d8]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00425520
push eax
push 0x429474
push ebx
call fcn.00412850
add esp, 0x14
pop edi
mov eax, 0x37
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x429474
push ebx
call fcn.00412850
add esp, 0xc
pop edi
mov eax, 0x47
pop ebx
ret
Function at 0x4180c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0xd4]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [0x4283d0]
test eax, eax
jge 0x418104
call dword [0x4283d8]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00412850
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00417fb0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4196d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x431020]
xor eax, esp
mov dword [esp + 0x14], eax
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xd8]
push 1
push 0
push esi
call fcn.00412c20
add esp, 0xc
test eax, eax
jge 0x41971d
push str.Timed_out_before_server_could_connect_to_us
push ebp
call fcn.00412850
add esp, 8
pop edi
mov eax, 0x1c
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004072ba
add esp, 0x18
ret
push eax
push 0xffffffffffffffff
push edi
call fcn.00420940
add esp, 0xc
cmp eax, 0xffffffff
je 0x4197fb
test eax, eax
je 0x4197d7
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [0x4283cc]
test eax, eax
jne 0x419776
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [0x4283ec]
mov ebx, eax
push edi
call dword [0x4283dc]
cmp ebx, 0xffffffff
jne 0x4197a7
push str.Error_accept__ing_server_connect
push ebp
call fcn.00412850
add esp, 8
pop ebx
pop edi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004072ba
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.004127c0
push 1
push ebx
mov dword [esi + 0xd8], ebx
call fcn.00425780
add esp, 0x10
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004072ba
add esp, 0x18
ret
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.00412850
add esp, 8
pop edi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004072ba
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00412850
mov ecx, dword [esp + 0x24]
add esp, 8
pop edi
pop ebp
xor ecx, esp
mov eax, 0x1e
call fcn.004072ba
add esp, 0x18
ret
Function at 0x41c200
Capabilities:
Check http status code

Disassembly:
cmp byte [esp + 4], 0
push ebx
sete bl
lea ebx, [ebx*8 + 0x41]
cmp byte [esi + 0x310], bl
jne 0x41c232
mov eax, edi
mov ecx, esi
call fcn.00419d90
pop ebx
mov dword [esp + 4], edi
mov ecx, 0xc8
mov eax, esi
jmp fcn.0041bbc0
movsx eax, bl
push eax
push str.TYPE__c
push esi
call fcn.0041a350
add esp, 0xc
test eax, eax
jne 0x41c259
mov eax, edi
mov ecx, esi
call fcn.00419d90
mov byte [esi + 0x310], bl
xor eax, eax
pop ebx
ret
Function at 0x420940
Capabilities:
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x420980
cmp ebp, ebx
jne 0x420980
mov eax, dword [esp + 0x334]
call fcn.00420920
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x42099b
mov esi, edi
call fcn.00422410
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x4209cf
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x420a16
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x4209fe
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4209fe
add eax, 1
cmp eax, ecx
jb 0x4209f1
cmp eax, ecx
jne 0x420a10
cmp ecx, 0x40
jae 0x420a10
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x420a16
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x420a61
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x420a6b
jne 0x420a6b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [0x4283f8]
cmp eax, 0xffffffff
jne 0x420ad5
call dword [0x4283d8]
test eax, eax
je 0x420a9e
cmp eax, 0x2714
jne 0x420ad9
test edi, edi
jle 0x420a30
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00422410
push edx
push eax
call fcn.00422440
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x420a30
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x420ae7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x420af6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x420b2d
lea ecx, [esp + 0x124]
push ecx
push edi
call fcn.00426608
test eax, eax
je 0x420b1b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call fcn.00426608
test eax, eax
je 0x420b2d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x420b60
lea eax, [esp + 0x228]
push eax
push edi
call fcn.00426608
test eax, eax
je 0x420b4e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.00426608
test eax, eax
je 0x420b60
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4230a0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4230af
jmp dword [ecx*4 + 0x423104]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x423290
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x431020]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [0x428308]
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4232f6
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [0x428118]
cmp byte [esp], 0
je 0x4232f6
lea edx, [esp]
push edx
call dword [0x43104c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004072ba
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004072ba
add esp, 0x108
ret
jmp 0x423290

Function at 0x423310
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x431020]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [0x428308]
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4232f6
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [0x428118]
cmp byte [esp], 0
je 0x4232f6
lea edx, [esp]
push edx
call dword [0x43104c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004072ba
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004072ba
add esp, 0x108
ret
jmp 0x423290

Function at 0x425d20
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x4f9448
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
sub byte [esi + edi], 0x7c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 8
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x32
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x96
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xab
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x59
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x46
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x47
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xc0
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 9
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xc
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xe
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x64
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x61
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x4f7024]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x4f9530
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.Mig1
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030c0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401325
push 1
push dword [0x4030c0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Gendalf
push str.Mig1
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030c8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4030c8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401325
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401308
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4032bc
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032e8
mov ebx, 0x40f890
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fd
mov ecx, dword [0x425b58]
add ecx, eax
push ecx
call fcn.004034eb
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034b9
test eax, eax
je 0x403464
test byte [ebp + 0x17], 0x80
je 0x40344d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b7c0
mov dword [ebp - 0xc], eax
call fcn.0040646e
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034af
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40334d
mov esi, dword [ebp + 0x14]
mov edi, 0x40b890
push esi
push edi
call fcn.004034b9
test eax, eax
je 0x403464
sub dword [ebp + 0x14], esi
mov dword [0x40b7d8], edi
mov dword [0x40b7dc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b7c0
mov dword [0x40b7e0], ebx
mov dword [0x40b7e4], eax
call fcn.0040648e
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403445
mov esi, dword [0x40b7e0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409840], 1
mov edi, eax
je 0x4033ef
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033bc
cmp dword [ebp + 0x14], 0
jne 0x4033ef
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.004051f3
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40343a
cmp dword [ebp + 0x10], eax
jne 0x403418
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403449
cmp dword [ebp - 0x10], esi
jne 0x403449
add dword [ebp - 4], esi
jmp 0x40342e
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b7e0]
jl 0x4034af
cmp dword [ebp - 0x14], 1
jne 0x403370
jmp 0x4034af
cmp dword [ebp + 0x14], eax
jg 0x403340
jmp 0x4034af
push 0xfffffffffffffffc
jmp 0x403466
push 0xfffffffffffffffe
jmp 0x403466
test edi, edi
je 0x4034a4
cmp dword [ebp + 0x14], esi
jge 0x403459
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034b9
test eax, eax
jne 0x4034ac
push 0xfffffffffffffffd
pop eax
jmp 0x4034b2
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403474
mov esi, dword [ebp + 0x14]
mov edi, 0x40b890
push esi
push edi
call fcn.004034b9
test eax, eax
je 0x403464
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403449
cmp esi, dword [ebp + 0x10]
jne 0x403449
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403469
jmp 0x4034af
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40570d
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x4234e0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405731
test al, 0x10
jne 0x405734
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x4234e0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40575f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4228e0
push esi
call fcn.00405ee3
push esi
call fcn.00405a83
mov edi, eax
test edi, edi
jne 0x405af1
xor eax, eax
jmp 0x405b43
push edi
call fcn.0040611f
test byte [0x425b10], 0x80
je 0x405b0a
mov al, byte [edi]
test al, al
je 0x405aed
cmp al, 0x5c
je 0x405aed
sub edi, esi
jmp 0x405b22
call fcn.00406365
test eax, eax
je 0x405b1c
test byte [eax], 0x10
je 0x405aed
push esi
call fcn.00405a37
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b0e
call fcn.004059f0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405bb4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405be3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c27
test edi, edi
jne 0x405bee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c21